sync

allows syncing two copies of data (all or just a part of it) from one DataCollection to another

void sync(object source, [function filter,boolean silent] );
source
objectthe object that the method is assigned to filter
functionthe filtering function silent
booleanif you set the parameter to `true`, the object won't be repainted after synchronization

Example

// full copy
$$("list").data.sync(data);
 
// partial copy
$$("dview").data.sync(data, function(){
    this.filter(function(data) {
        return data.year > 1994;
    });
});

Related samples

See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix popular javascript framework and page of javascript menu library product.