Show:

Module: binding/rivets

binding/rivets

Rivets binding module.

See:

Extends

Methods

bindData(){Widget}

modules/binding/rivets.js, line 62

Binds the data to the view.

The bound view is cached on the instance in this.rv_view.

Related options:

  • observe: map, or a function returning one, of model names to use in bindings to the objects they observe. It's also possible to set it to a string which will be used as a reference for the instance's context. If a value in that map is a string it is used to fetch a registered resource. If that value is 'this' or a boolean it will be mapped to the instance's context.
  • resource: if it's a string it will be added to view's observables.
  • bind_options: config object passed to Rivets.bind().
See:

destroy(){Widget}

modules/binding/rivets.js, line 48

Unbinds the data from the view

See:

register(){Widget}

modules/binding/rivets.js, line 27

Triggers data binding on init().

Related options:

  • dont_bind: if true prevents from bindData() to be invoked here during init() stage. If this instance is Templated then bindData() is never called here.