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 = this.getSelectedFile();
var item = this.getItem(id);
item.value = "some_new_value";
this.updateItem(id, item);

Related samples

See also
Back to top