add

adds an item to the store

id add(object obj, [number index] );
objobjectthe item object
indexnumberthe item position
idthe item id

Example

dtable.add({
    name:"Best film ever"
    rank:1
});

Related samples

Details

Object can contain any properties:

$$('mygrid').add({
  some:"some string",
  other:123,
  complex:{
    contain:"any",
    content:"inside"
  }
}, 0);
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix best ui framework and page of javascript datatables product.