UIZE JavaScript Framework

2009 NEWS 2009-07-01 - NEW MODULE: Uize.Coupler

The new Uize.Coupler class implements a mechanism for coupling two or more instances of any Uize subclass by synchronizing the values of a definable group of state properties.

The Uize.Coupler class makes it easy to keep desired state synchronized between two or more instances. Coupled instances can be widget instances (i.e. instances of Uize.Widget subclasses), but they do not have to be widgets. Coupled instances do not have to be of the same class - they only need to provide the same state properties that are to be synchronized between them. Using the Uize.Coupler class is easy: all you have to do is create an instance of it, specifying which properties of which instances you would like to be coupled together. To see an example of how the Uize.Coupler class is used, consult the Coupled Zooming Collection Items example.