getItemNode

returns HTML element of the item

HTMLElement getItemNode(id id);
ididdata item ID
HTMLElementHTML element of the item

Example

var node = mylist.getItemNode(123);
node.innerHTML = "some text";

Details

Datatable and treetable specificity:

  • item ID as number - the method returns HTML element of the first cell in a row with this ID:
$$("mydatatable").getItemNode(2);
  • item ID as object that contains data item ID and column ID - the method returns HTML element of a cell with these row and column IDs:
$$("mydatatable").getItemNode({ row: 2, column:"title"});
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript framework and page of tree grid ui product.