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:

  • the item ID as number - the method returns the HTML element of the first cell in a row with this ID:
$$("mydatatable").getItemNode(2);
  • the item ID as object that contains data item ID and column ID - the method returns the 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 web control library and page of datagrid in html5 product.