Documentation

bind

binds components

void bind(object target, [function rule,string format] );

Parameters

targetobjectan object that binds to the calling component
rulefunctionsets the rule according which components will be bound
formatstringthe format of bound data

See also

Example

$$('form1').bind($$('list1'));
 
gridb.bind(grida, function(slave, master){
        if (!master) return false;
    return master.id == slave.movie;
});

Details

Behavior of data binding differs for different components a lot. Basically, it fills component with data based on selection in the master component.

The technique allows you to create complex data updates schemes, but you can ignore it as the same use case can be implemented through events and custom logic.

Binding rule defines a rule according to which records in the slave component are filtered. It can be defined only in case slave component is based on DataStore (all data management components except for tree-like) or TreeStore (tree and treetable).

Back to top