Show:

Module: binding/rivets-backbone

binding/rivets-backbone

Rivets-Backbone binding module.

See:

Extends

Methods

bindData(){Widget}

modules/binding/rivets-backbone.js, line 95

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-backbone.js, line 81

Unbinds the data from the view

See:

register(){Widget}

modules/binding/rivets-backbone.js, line 61

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.

innersetOptions(){uijet.BaseWidget}

modules/binding/rivets-backbone.js, line 54

Sets the dont_bind_data_events option to true to ensure binding of Rivets views happens before binding of data events.