Knockout Class

Provides Knockout functionality.

Namespace: SharpKit.KnockoutJs

Base Types

System.Object

Methods

Name Description
applyBindings(object) Sets up bindings using the specified model.
applyBindings(object, HtmlElement) Sets up bindings within the specified root element using the specified the model.
applyBindingsToNode(HtmlElement, JsObject, object) Set up bindings on a single node without binding any of its descendents.
applyBindingsToNode(HtmlElement, JsObject, object, JsString) Set up bindings on a single node without binding any of its descendents.
computed<T>(JsFunc<TResult>)
computed<T>(DependentObservableOptions<T>)
dependentObservable<T>(JsFunc<TResult>)
dependentObservable<T>(DependentObservableOptions<T>)
extend<TObservable>(TObservable, object)
isObservable(object) Returns true if the value is an observable, false otherwise.
isWriteableObservable(object) Returns true if the value is an writable observable, false otherwise.
isWriteableObservable<T>(Observable<T>)
observable<T>() Creates an observable value.
observable<T>(T)
observableArray<T>() Creates an empty observable array.
observableArray<T>(JsArray<T>)
toJS(object) Converts a model into the equivalent vanilla script object.
toJSON(object) Converts a model into the equivalent JSON representation.

Properties

Name Description
bindingHandlers Provides access to the currently registered binding handlers.
extenders Provide access to extenders of observables.
mapping Gets the mapping plugin which allows converting models to plain objects and JSON and vice-versa.
this Provide access to 'this'.
utils Provide access to utilities methods of the KnockoutJS
© Copyright 2005-2011 SharpKit. All rights reserved.