getItemNode

returns HTML element of the item

HTMLElement getItemNode(id|object id);
idid|objectdata item ID or an object with item's position
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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
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.