Interface Static

Hierarchy

Index

Methods

Methods

public applyBindings(viewModel: ViewModel, node?: Element): any

Parameters

  • viewModel: ViewModel
  • node?: Element optional

Returns

any

public collectionObservable(model?: Collection, options?: CollectionOptions): CollectionObservable

Parameters

Returns

CollectionObservable

public createFromDefaultCreator(obj: any, options?: any): any

Parameters

  • obj: any
  • options?: any optional

Returns

any

public defaultObservable(targetObservable: KnockoutObservable, defaultValue: any): KnockoutObservable

Parameters

Returns

KnockoutObservable

public formattedObservable(format: string, args: Array<any>): KnockoutObservable

Parameters

  • format: string
  • args: Array<any>

Returns

KnockoutObservable

public formattedObservable(format: KnockoutObservable, args: Array<any>): KnockoutObservable

Parameters

Returns

KnockoutObservable

public hasCollectionSignature(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public hasModelSignature(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public inferCreator(value: any, factory: Factory, path: string, owner: any, key: string): any

Parameters

  • value: any
  • factory: Factory
  • path: string
  • owner: any
  • key: string

Returns

any

public localizedObservable(data: any, options: any): KnockoutObservable

Parameters

  • data: any
  • options: any

Returns

KnockoutObservable

public observable(model: Model, options: IObservableOptions, vm?: ViewModel): KnockoutObservable

Base class for observing model attributes.

Parameters

  • model: Model

    the model to observe (can be null)

  • options: IObservableOptions

    the create options. String is a single attribute name, Array is an array of attribute names.

  • vm?: ViewModel optional

    the viewModel

Returns

KnockoutObservable

public observable(model: Model, options_attributeName: string, vm?: ViewModel): KnockoutObservable

Parameters

  • model: Model

    the model to observe (can be null)

  • options_attributeName: string

    the create options. String is a single attribute name, Array is an array of attribute names.

  • vm?: ViewModel optional

    the viewModel

Returns

KnockoutObservable

public optionsPathJoin(options: any, path: string): any

Parameters

  • options: any
  • path: string

Returns

any

public pathJoin(path1: string, path2: string): string

Parameters

  • path1: string
  • path2: string

Returns

string

public release(object: any, pre_release?: () => void): any

Parameters

  • object: any
  • pre_release?: () => void optional

Returns

any

public releaseKeys(object: any): any

Parameters

  • object: any

Returns

any

public releaseOnNodeRemove(viewmodel: ViewModel, node: Element): any

Parameters

Returns

any

public renderAutoReleasedTemplate(template: string, viewModel: ViewModel, options: any): any

Parameters

  • template: string
  • viewModel: ViewModel
  • options: any

Returns

any

public renderTemplate(template: string, viewModel: ViewModel, options: any): any

Parameters

  • template: string
  • viewModel: ViewModel
  • options: any

Returns

any

public valueType(observable: KnockoutObservable): any

Parameters

Returns

any

public viewModel(model?: Model, options?: any): KnockoutObservable

Parameters

  • model?: Model optional
  • options?: any optional

Returns

KnockoutObservable

public wrappedDestroy(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedEventWatcher(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedEventWatcher(obj: any, value: any): any

Parameters

  • obj: any
  • value: any

Returns

any

public wrappedFactory(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedFactory(obj: any, value: any): any

Parameters

  • obj: any
  • value: any

Returns

any

public wrappedModel(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedModel(obj: any, value: any): any

Parameters

  • obj: any
  • value: any

Returns

any

public wrappedObject(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedObject(obj: any, value: any): any

Parameters

  • obj: any
  • value: any

Returns

any

public wrappedObservable(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedObservable(obj: any, value: any): any

Parameters

  • obj: any
  • value: any

Returns

any

public wrappedStore(obj: any): any

Parameters

  • obj: any

Returns

any

public wrappedStore(obj: any, value: any): any

Parameters

  • obj: any
  • value: any

Returns

any