DHTMLX Docs & Samples Explorer

insertNewNext(itemId,newItemId,itemText,itemActionHandler,image1,image2,image3,optionStr,children)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxtree.js

create new node next to specified

  • itemId - node id
  • newItemId - new node id
  • itemText - new node text
  • itemActionHandler - function fired on node select event (optional)
  • image1 - image for node without children; (optional)
  • image2 - image for closed node; (optional)
  • image3 - image for opened node (optional)
  • optionStr - options string (optional)
  • children - node children flag (for dynamical trees) (optional)