Skip to main content

update()

updates properties of the item

updateUrl?: (id: string | number, newItem: IUpdateObject) => void;

Parameters:

  • id: string | number - the id of the item which needs to be updated
  • newItem: object - a hash of properties which need to be updated

Example

component.data.update(123, { text:"New text" });

Related sample: Data. Update