add

adds an item to the store

id add(object obj, [number index] );

Parameters

objobjectthe item object
indexnumberthe item position

Returns

idthe item id

Example

function addData() {
    $$("data").add({
        title: document.getElementById("title").value,
        year: document.getElementById("year").value
    },0)
}

Related samples

Details

An example for Pivot can be as follows:

$$('pivot').add({
  some:"some string",
  other:123
}, 0);
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of javascript pivot product.