updateItem

updates the data item with new properties

void updateItem(number|string id,object data);

Parameters

idnumber|stringthe item ID
dataobjectthe hash of properties

Example

var id = dtable.getSelectedId(); 
var item = dtable.getItem(id.row);
item[id.column] = "some_new_value";
 
dtable.updateItem(id.row, item);

Related samples

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 library and page of javascript tree data structure product.