DHTMLX Docs & Samples Explorer

Integration with container components

Pretty often, you need to place form into other dhtmlx components. Such dhtmlx components are also known as container components. They are:

Integration with any container component implements the same technique:

  1. Create a container component instance
    Details see in the related documentation:accordion, layout, tabbar, window.
  2. Put form into the container
//accordion, layout, tabbar
   myForm = mylayout.cells("a").attachForm();
   myForm.loadStruct("data.json", "json");
//window
   myForm = myWins.window("win").attachForm();
   myForm.loadStruct("data.json", "json");