binds components
source | object | an object that binds to the calling component |
rule | function | optional, sets the rule according which components will be bound |
format | string | optional, the format of bound data |
$$('form1').bind($$('list1'));
gridb.bind(grida, function(slave, master){
if (!master) return false;
return master.id == slave.movie;
});
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).