Class: kb.DefaultObservable

Defined in: src/defaults/default-observable.coffee

Instance Method Summary

Constructor Details

# (ko.observable) constructor(target_observable, dv)

Note: the constructor does not return 'this' but a ko.observable

Used to create a new kb.DefaultObservable.

Parameters:

  • target_observable ( ko.observable ) the observable to check for null, undefined, or the empty string
  • default_value ( Any ) the default value. Can be a value, string or ko.observable

Returns:

  • ( ko.observable ) — the constructor does not return 'this' but a ko.observable

Instance Method Details

# (void) destroy()

Required clean up function to break cycles, release view models, etc. Can be called directly, via kb.release(object) or as a consequence of ko.releaseNode(element).

# (void) setToDefault()

Note: Can be used with kb.utils.setToDefault, kb.Observable.setToDefault, kb.ViewModel.setToDefault

Forces the observable to take the default value.

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: