update()
updates properties of the item
update?: (id: string | number, newItem: object) => void;
Parameters:
id: string | number
- the id of the item which needs to be updatednewItem: object
- a hash of properties which need to be updated
Example
component.data.update(123, { text:"New text" });
Related sample: Data. Update