pull

returns the hash of data items (where the key is the item id).

object pull;

Example

var items = $$("myList").data.pull;

Details

To get a certain item, call the property as in:

var item = $$("myList").data.pull[id]

The property returns the entire collection of data items regardless of the number of currently displayable ones.

var listData = [
        {id: "1", name: "Emma",     age: 62},
        {id: "2", name: "Emily",    age: 43}
];
 
webix.ui({
        view:"list",
        id:"myList",
        template:"#name#"
});
$$("myList").parse(listData,"json");
$$("myList").data.pull; 
//-> { {id:"1", name:"Emma", age:62},{id:"2", name:"Emily", age:43} }
 
$$("myList").filter(function(obj){ return obj.age > 50;});
$$("myList").data.pull; 
//-> { {id:"1", name:"Emma", age:62},{id:"2", name:"Emily", age:43} }
See also
Back to top