dojox/mvc/at.handle (version 1.10)

Summary

A handle of data binding target (a dojo/Stateful property), which is used for start synchronization with data binding source (another dojo/Stateful property).

See the dojox/mvc/at.handle reference documentation for more information.

Property Summary

  • bindDirectionThe data binding bindDirection, choose from: dojox/mvc/sync.from, dojox/mvc/sync.to or dojox/mvc/sync.both.
  • converterClass/object containing the converter functions used when the data goes between data binding target (e.g. data model or controller) to data binding origin (e.g. widget).
  • targetThe data binding literal or dojo/Stateful to be synchronized.
  • targetPropThe property name in target to be synchronized.

Method Summary

  • direction(bindDirection) Sets data binding bindDirection.
  • equals(equals) Sets a function to check if a value has really been changed when source/target dojo/Stateful changes.
  • transform(converter) Attach a data converter.

Properties

bindDirection
Defined by: dojox/mvc/at

The data binding bindDirection, choose from: dojox/mvc/sync.from, dojox/mvc/sync.to or dojox/mvc/sync.both.

converter
Defined by: dojox/mvc/at

Class/object containing the converter functions used when the data goes between data binding target (e.g. data model or controller) to data binding origin (e.g. widget).

target
Defined by: dojox/mvc/at

The data binding literal or dojo/Stateful to be synchronized.

targetProp
Defined by: dojox/mvc/at

The property name in target to be synchronized.

Methods

direction(bindDirection)
Defined by dojox/mvc/at

Sets data binding bindDirection.

Parameter Type Description
bindDirection Number

The data binding bindDirection, choose from: dojox/mvc/sync.from, dojox/mvc/sync.to or dojox/mvc/sync.both.

equals(equals)
Defined by dojox/mvc/at

Sets a function to check if a value has really been changed when source/target dojo/Stateful changes.

Parameter Type Description
equals Function

The function to check for the change. Should take two arguments, and should return true when those two are considered equal.

transform(converter)
Defined by dojox/mvc/at

Attach a data converter.

Parameter Type Description
converter dojox/mvc/sync.converter

Class/object containing the converter functions used when the data goes between data binding target (e.g. data model or controller) to data binding origin (e.g. widget).

Error in the documentation? Can’t find what you are looking for? Let us know!