Documentation

add

adds an item to the store

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

Parameters

objobjectthe item object
indexnumberthe item position

Returns

idthe item id

See also

Example

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

Details

Object can contain any properties:

$$('mygrid').add({
  some:"some string",
  other:123,
  complex:{
    contain:"any",
    content:"inside"
  }
}, 0);
Back to top