Skip to main content

update()

changes an item

update(id: string | number, item: IUpdateObject): void;

Parameters:

  • id: string | number - the ID of an item
  • item: object - new properties for an item

Example

toolbar.data.update("add_btn",{ value:"Add new" });