dojox/mvc/sync (version 1.10)

Summary

Synchronize two dojo/Stateful properties.

Synchronize two dojo/Stateful properties.

Usage

sync(source,sourceProp,target,targetProp,options);
Parameter Type Description
source dojo/Stateful

Source dojo/Stateful to be synchronized.

sourceProp String

The property name in source to be synchronized.

target dojo/Stateful

Target dojo/Stateful to be synchronized.

targetProp String

The property name in target to be synchronized.

options dojox/mvc/sync.options

Data binding options.

Returns:any | object

The handle of data binding synchronization.

See the dojox/mvc/sync reference documentation for more information.

Property Summary

  • bothData binding goes in both directions (dojox/mvc/Bind.from | dojox/mvc/Bind.to)
  • fromData binding goes from the source to the target
  • toData binding goes from the target to the source

Method Summary

  • equals(dst,src) Returns if the given two values are equal.

Properties

both
Defined by: dojox/mvc/sync

Data binding goes in both directions (dojox/mvc/Bind.from | dojox/mvc/Bind.to)

from
Defined by: dojox/mvc/sync

Data binding goes from the source to the target

to
Defined by: dojox/mvc/sync

Data binding goes from the target to the source

Methods

equals(dst,src)
Defined by dojox/mvc/sync

Returns if the given two values are equal.

Parameter Type Description
dst Anything
src Anything
Returns:boolean
Error in the documentation? Can’t find what you are looking for? Let us know!