Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Yves on Apr 07, 2008 06:29
open dhtmlx forum
How do I put a split line in the (context) menu

I saw a lot of these in the samples but the code responsible for it is nowhere to find :(

Thanks
Answer posted by Support on Apr 07, 2008 07:51
In case of XML

<?xml version='1.0' ?>
<menu maxItems="12" name="Demo Menu" mixedImages="yes">
         <MenuItem name="New" id="new"/>
         <MenuItem name="Open" id="open"/>
         <divider id="div_1"/>  
         <MenuItem name="Page Setup..." id="page"/>
</menu>


In case of creating by js

    var item = new dhtmlXMenuDividerYObject(....