Basic Full | Plain view ( html) Plain view ( pdf)

<?xml version="1.0" encoding="iso-8859-1" ?> #encoding can be important <menu mode="classic" menuAlign="left" maxItems="20" absolutePosition="yes" left="100" top="100" name="Demo menu" width="600px" height="20px" imageTextButtonCssClass="someCss" globalTextCss="someCss2" globalSecondCss="someCss3" globalCss="someCss4" withoutImages="0" mixedImages="1" type="a1"> # there is a lot of optional attributes, but you will not need them in most situations <MenuItem name="File"id="main_file" width="120px" withoutImages="0" mixedImages="1" mode="popup" panelWidth="150px"> #some of global attributes can be redefined on sub-menu level <MenuItem name="New" id="new" src="programs.gif" src2="programs2.gif" imageSize="30px"/> #image customization <divider id="div_1"/> <MenuItem name="Page Setup..." id="page" href="some.html" target="blank" />#auto-link functionality </MenuItem> <MenuItem name="Help" id="main_help" width="120px" className="customCss1" textClassName="customCss2">#custom css styling <MenuItem name="Index" width="120px" id="help_index" tooltip="some tooltip here"/> <MenuItem name="About" id="help_about" disabled="true" disableImage="a_dis.gif"/>#disabled item </MenuItem> <MenuItem name="Dynamic" id="dynamic_one" submenu="some.php"/>#dynamically loaded sub-menu </menu> <?xml version='1.0' ?> <menu> <MenuItem name="File"id="main_file" width="120px"> <MenuItem name="New" id="new" src="programs.gif" /> <divider id="div_1"/> <MenuItem name="Page Setup..." id="page"/> </MenuItem> <MenuItem name="Help" id="main_help" width="120px"> <MenuItem name="Index" width="120px" id="help_index"/> <MenuItem name="About" id="help_about"/> </MenuItem> </menu>
menu divider

#### Optional attributes

- id - item identificator
item identificator, not really necessary ,
but can be used for manipulation by JS API
tag represent item of menu hierarchy
can contain multiple attributes, but only few of them really necessary, most are optional

#### Mandatory attributes

- id - identificator of menu item

#### Common attributes

- name - label of menu item
- src - source of image used inside menu item
- href - url used in auto-link mode

#### Rare used attributes

- width - width of menu item
- panelWidth - width of menu sub panel
- mode - mode of sub-panel
- withoutImages - menu without images
- mixedImages - menu with fixed images
- src2 - url of second image
- imageSize - size of image
- target - target of href
- className - css class
- textClassName - css class for text
- tooltip - tooltip of item
- disabled - item initially disabled
- disableImage - src used for item image in disabled state
- submenu - url for additional data fetching
id of menu item
must be unique per menu
label of menu item, can contain HTML tags
url to image used inside menu item ( the image itself optional )
menu can work in auto-link mode,
if "href" attribute present - selecting it will automatically open page defined by href attribute
width of menu items ( in pixels )
width of sub-items panel ( if any sub-items exist )
mode of sub-menu, effect equal to the same attribute of menu tag
if attribute set - items in sub-menu will be rendered without images
if attribute set - items in sub-menu will be rendered with or without images ( in any case place for image will be preserved )
one more mystic thing
this attribute allows to second image url, in such case menu item will have two (!) images
pretty unsure why it necessary
allows to set custom size of image inside menu item
in auto-link mode, with attribute used to point how link must be opened
_blank by default
css class which will be applied to container of menu item
css class which will be applied to text of menu item
tooltip of item, the item label used by default
if attribute exists, item will be rendered in disabled state ( can be enabled later, by js API )
in disabled state menu item change its css class , so it possible to define custom disabled effect,
if it is not enough, it possible to define one more image which will be used in disabled state
this attribute allow to organize dynamical loading of menu items, if it present, then on sub-menu opening
request will be sent to server , to retrieve additional data
value of attribute used as url of server side script, which must send additional data.