dojox.data.jsonPathStore.newItem
dojo.require("dojox.data.jsonPathStore");
defined in dojox/data/jsonPathStore.js
adds a new item to the store at the specified point. Takes two parameters, data, and options.
parameter | type | description |
---|---|---|
data | Object | */ The data to be added in as an item. This could be a new javascript object, or it could be an item that already exists in the store. If it already exists in the store, then this will be added as a reference. |
options | Object | */ item: /* item */ reference to an existing store item attribute: /* string */ attribute to add the item at. If this is not provided, the item's id will be used as the attribute name. If specified attribute is an array, the new item will be push()d on to the end of it. oldValue: /* old value of item[attribute] newValue: new value item[attribute] |