Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prakash on Jul 23, 2008 23:54
open dhtmlx forum
context-menu icons

I am using professional edition..I am trying to display icons for the context menu items..I have placed the images in corresponding folder but the icon is not displaying..


<?xml version='1.0' ?>
<menu absolutePosition="auto" mode="popup" maxItems="8" globalCss="contextMenu" globalSecondCss="contextMenu" globalTextCss="contextMenuItem">
    <MenuItem name="Add" src="images/add.gif" id="add" width="110px">
        <MenuItem name="sfd" id="tosf" width="110px"/>    
        <MenuItem name="sf" id="tofsd" width="110px"/>    
    </MenuItem>
</menu>

Pls help me out to resolve this problem.
Answer posted by Support on Jul 24, 2008 02:04
By default the paths used in src tag are related to current directory, you can directly specify folder from which  images will be used by
    menu.setGfxPath("some/path/to/images/");