Interface KnockoutStatic

Index

Properties

Methods

Properties

public bindingHandlers: KnockoutBindingHandlers

public bindingProvider: any

public computed: KnockoutComputedStatic

public editable: KnockoutEditableStatic

public expressionRewriting: { bindingRewriteValidators: any; }

public expressionRewriting.bindingRewriteValidators: any

public extenders: KnockoutExtenders

public jqueryTmplTemplateEngine: { prototype: KnockoutTemplateEngine; renderTemplateSource(templateSource: Object, bindingContext: KnockoutBindingContext, options: Object): Node[]; createJavaScriptEvaluatorBlock(script: string): string; addTemplate(templateName: string, templateMarkup: string): void; }

public jqueryTmplTemplateEngine.prototype: KnockoutTemplateEngine

public addTemplate()

.templateMarkup.templateMarkup: string

.templateName.templateName: string

public createJavaScriptEvaluatorBlock(): string

Returns

string

.script.script: string

public renderTemplateSource(): Array<Node>

Returns

Array<Node>

.bindingContext.bindingContext: KnockoutBindingContext

.options.options: Object

.templateSource.templateSource: Object

public memoization: KnockoutMemoization

public nativeTemplateEngine: { prototype: KnockoutNativeTemplateEngine; instance: KnockoutNativeTemplateEngine; new(): KnockoutNativeTemplateEngine; }

constructor(): KnockoutNativeTemplateEngine

Returns

KnockoutNativeTemplateEngine

public nativeTemplateEngine.instance: KnockoutNativeTemplateEngine

public nativeTemplateEngine.prototype: KnockoutNativeTemplateEngine

public observable: KnockoutObservableStatic

public observableArray: KnockoutObservableArrayStatic

public selectExtensions: { readValue(element: HTMLElement): any; writeValue(element: HTMLElement, value: any): void; }

public readValue(): any

Returns

any

.element.element: HTMLElement

public writeValue()

.element.element: HTMLElement

.value.value: any

public subscribable: KnockoutSubscribableStatic

public templateEngine: { prototype: KnockoutTemplateEngine; new(): KnockoutTemplateEngine; }

constructor(): KnockoutTemplateEngine

Returns

KnockoutTemplateEngine

public templateEngine.prototype: KnockoutTemplateEngine

public templateRewriting: { ensureTemplateIsRewritten(template: Node, templateEngine: KnockoutTemplateEngine, templateDocument: Document): any; ensureTemplateIsRewritten(template: string, templateEngine: KnockoutTemplateEngine, templateDocument: Document): any; memoizeBindingAttributeSyntax(htmlString: string, templateEngine: KnockoutTemplateEngine): any; applyMemoizedBindingsToNextSibling(bindings: any, nodeName: string): string; }

public applyMemoizedBindingsToNextSibling(): string

Returns

string

.bindings.bindings: any

.nodeName.nodeName: string

public ensureTemplateIsRewritten(): any

Returns

any

.template.template: Node

.templateDocument.templateDocument: Document

.templateEngine.templateEngine: KnockoutTemplateEngine

public ensureTemplateIsRewritten(): any

Returns

any

.template.template: string

.templateDocument.templateDocument: Document

.templateEngine.templateEngine: KnockoutTemplateEngine

public memoizeBindingAttributeSyntax(): any

Returns

any

.htmlString.htmlString: string

.templateEngine.templateEngine: KnockoutTemplateEngine

public templateSources: KnockoutTemplateSources

public utils: KnockoutUtils

public virtualElements: KnockoutVirtualElements

Methods

public applyBindings(viewModel: any, rootNode?: any)

Parameters

  • viewModel: any
  • rootNode?: any optional

public applyBindingsToDescendants(viewModel: any, rootNode: any)

Parameters

  • viewModel: any
  • rootNode: any

public applyBindingsToNode(node: Element, options: any, viewModel: any)

Parameters

  • node: Element
  • options: any
  • viewModel: any

public cleanNode(node: Element): Element

Parameters

  • node: Element

Returns

Element

public contextFor(node: any): any

Parameters

  • node: any

Returns

any

public dataFor(node: any): any

Parameters

  • node: any

Returns

any

public isComputed(instance: any): boolean

Parameters

  • instance: any

Returns

boolean

public isObservable(instance: any): boolean

Parameters

  • instance: any

Returns

boolean

public isSubscribable(instance: any): boolean

Parameters

  • instance: any

Returns

boolean

public isWriteableObservable(instance: any): boolean

Parameters

  • instance: any

Returns

boolean

public removeNode(node: Element)

Parameters

  • node: Element

public renderTemplate(template: Function, viewModel: any, options?: any, target?: any, renderMode?: any): any

Parameters

  • template: Function
  • viewModel: any
  • options?: any optional
  • target?: any optional
  • renderMode?: any optional

Returns

any

public renderTemplate(template: string, viewModel: any, options?: any, target?: any, renderMode?: any): any

Parameters

  • template: string
  • viewModel: any
  • options?: any optional
  • target?: any optional
  • renderMode?: any optional

Returns

any

public renderTemplate(template: Function, dataOrBindingContext: KnockoutBindingContext, options: Object, targetNodeOrNodeArray: Node, renderMode: string): any

Parameters

  • template: Function
  • dataOrBindingContext: KnockoutBindingContext
  • options: Object
  • targetNodeOrNodeArray: Node
  • renderMode: string

Returns

any

public renderTemplate(template: any, dataOrBindingContext: KnockoutBindingContext, options: Object, targetNodeOrNodeArray: Node, renderMode: string): any

Parameters

  • template: any
  • dataOrBindingContext: KnockoutBindingContext
  • options: Object
  • targetNodeOrNodeArray: Node
  • renderMode: string

Returns

any

public renderTemplate(template: Function, dataOrBindingContext: any, options: Object, targetNodeOrNodeArray: Node, renderMode: string): any

Parameters

  • template: Function
  • dataOrBindingContext: any
  • options: Object
  • targetNodeOrNodeArray: Node
  • renderMode: string

Returns

any

public renderTemplate(template: any, dataOrBindingContext: any, options: Object, targetNodeOrNodeArray: Node, renderMode: string): any

Parameters

  • template: any
  • dataOrBindingContext: any
  • options: Object
  • targetNodeOrNodeArray: Node
  • renderMode: string

Returns

any

public renderTemplate(template: Function, dataOrBindingContext: KnockoutBindingContext, options: Object, targetNodeOrNodeArray: Array<Node>, renderMode: string): any

Parameters

  • template: Function
  • dataOrBindingContext: KnockoutBindingContext
  • options: Object
  • targetNodeOrNodeArray: Array<Node>
  • renderMode: string

Returns

any

public renderTemplate(template: any, dataOrBindingContext: KnockoutBindingContext, options: Object, targetNodeOrNodeArray: Array<Node>, renderMode: string): any

Parameters

  • template: any
  • dataOrBindingContext: KnockoutBindingContext
  • options: Object
  • targetNodeOrNodeArray: Array<Node>
  • renderMode: string

Returns

any

public renderTemplate(template: Function, dataOrBindingContext: any, options: Object, targetNodeOrNodeArray: Array<Node>, renderMode: string): any

Parameters

  • template: Function
  • dataOrBindingContext: any
  • options: Object
  • targetNodeOrNodeArray: Array<Node>
  • renderMode: string

Returns

any

public renderTemplate(template: any, dataOrBindingContext: any, options: Object, targetNodeOrNodeArray: Array<Node>, renderMode: string): any

Parameters

  • template: any
  • dataOrBindingContext: any
  • options: Object
  • targetNodeOrNodeArray: Array<Node>
  • renderMode: string

Returns

any

public renderTemplateForEach(template: Function, arrayOrObservableArray: Array<any>, options: Object, targetNode: Node, parentBindingContext: KnockoutBindingContext): any

Parameters

  • template: Function
  • arrayOrObservableArray: Array<any>
  • options: Object
  • targetNode: Node
  • parentBindingContext: KnockoutBindingContext

Returns

any

public renderTemplateForEach(template: any, arrayOrObservableArray: Array<any>, options: Object, targetNode: Node, parentBindingContext: KnockoutBindingContext): any

Parameters

  • template: any
  • arrayOrObservableArray: Array<any>
  • options: Object
  • targetNode: Node
  • parentBindingContext: KnockoutBindingContext

Returns

any

public renderTemplateForEach(template: Function, arrayOrObservableArray: KnockoutObservable, options: Object, targetNode: Node, parentBindingContext: KnockoutBindingContext): any

Parameters

Returns

any

public renderTemplateForEach(template: any, arrayOrObservableArray: KnockoutObservable, options: Object, targetNode: Node, parentBindingContext: KnockoutBindingContext): any

Parameters

Returns

any

public setTemplateEngine(templateEngine: KnockoutNativeTemplateEngine)

Parameters

public toJS(viewModel: any): any

Parameters

  • viewModel: any

Returns

any

public toJSON(viewModel: any, replacer?: Function, space?: any): string

Parameters

  • viewModel: any
  • replacer?: Function optional
  • space?: any optional

Returns

string

public unwrap(value: any): any

Parameters

  • value: any

Returns

any