add of ui.submenu, Methods Webix Docs
adds an item to the store
id add(object obj, [number index] );
obj
| id | the item id |
Example
function addData() {
$$("data").add({
title: document.getElementById("title").value,
year: document.getElementById("year").value
},0)
}
Related samples
Details
Object can contain any properties:
$$('mygrid').add({
some:"some string",
other:123,
complex:{
contain:"any",
content:"inside"
}
}, 0);
See also
API
Articles