Binding

Binding

new Binding(properties, eventListeneropt)

Source:
Parameters:
Name Type Attributes Default Description
properties object
eventListener EventListener <optional>
new EventListener(new Observable())

Members

(readonly) identifier :object

Source:
Type:
  • object

(readonly) properties :object

Source:
Type:
  • object

(readonly) root :Node

Source:
Type:
  • Node

(readonly) model :object

Source:
Type:
  • object

(readonly) eventListener :EventListener

Source:
Type:

Methods

listen(eventName, callback, unshiftopt) → {Listener}

Source:
Example
binding.listen(observable, "myEvent", message => console.log(message))
Parameters:
Name Type Attributes Default Description
eventName string
callback function
unshift boolean <optional>
false
Returns:
Type
Listener

run(model, properties)

Source:
Example
binding.run(Model, { binding: new Binding() })
Parameters:
Name Type Description
model object
properties object
Properties
Name Type Attributes Default Description
parentNode Element <optional>
this.root
binding Binding
method Method <optional>
Core.METHOD.APPEND_CHILD

(abstract) onCreated()

Source:

(async, abstract) onRendered()

Source: