bind

binds components

void bind(object source, [function rule,string format] );
sourceobjectan object that binds to the calling component
rulefunctionoptional, sets the rule according which components will be bound
formatstringoptional, the format of bound data

Example

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

Related samples

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).

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of list ui product.