Unlimited number of levels

COOLjsMenu and COOLjsMenu Professional support unlimited number of levels. No special actions should be taken in case of big number of levels.

General form of sublevel declaration:

{code:"SuperItem",
    sub:[
        {itemoff:[22,0]},   // format description for submenu
        {code:"SubItem 1"}, // submenu's items
        {code:"SubItem 2"}
    ]
}

Menu item "SuperItem" contains submenu with two items. SuperItem's member "sub" is an array of subitems. First element (index 0) of this array is common format specifier for submenu. It cannot be ommited but can be empty - {}.

Copyright © CoolDev.Com 1997-2007.