TreeCollection

class webix.TreeCollection(data)
Arguments:
  • data (object) – A configuration object

Treecollection component.

References

components
DataCollection().
helpers
extend(), proto().
mixins
TreeDataLoader(), TreeDataMove(), TreeStore().

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
webix.TreeCollection = webix.proto({
    name:"TreeCollection",
    $init:function(){
        webix.extend(this.data, webix.TreeStore, true);
        this.data.provideApi(this,true);
        webix.extend(this, webix.TreeDataMove, true);
    }
}, webix.TreeDataLoader, webix.DataCollection);

/*
    Behavior:DragItem - adds ability to move items by dnd

    dnd context can have next properties
        from - source object
        to - target object
        source - id of dragged item(s)
        target - id of drop target, null for drop on empty space
        start - id from which DND was started
*/