Dynamic Menu Creation
Dynamic menus can be created on the server side or client side. When creating dynamic menus on the server side, use a constructor to dynamically create a new instance of the C1MenuItem class. For client-side, the CreateInstance constructor can be used to dynamically create a new instance of the C1Menu control. For example the follow script creates a new menu control on the client side:
var aMenu = C1.Web.C1Menu.createInstance ();
document.body.appendChild(aMenu.element);
|