Method | Description | |
---|---|---|
Add ( string title ) : |
Adds a new item to the menu This entry point has no URL on click. The hyperlink will have a URL of "#". |
|
Add ( string title, Core icon ) : |
Adds a new item to the menu.
|
|
Add ( string title, string url ) : |
Adds a new item to the menu.
|
|
Add ( string title, string url, Core icon ) : |
Adds a new item to the menu.
|
|
AddDivider ( ) : |
Adds a divider into the menu. Useful if you want to group certain items
|
|
AddHtml ( string markup ) : |
Adds a new item to the menu, this replaces the hyperlink, but not the LI (or defined separator).
|
|
Back ( ) : |
Returns control to the parent sub-menu (allows the user to continue adding further menu items at the previous level).
|
|
Configure ( ) : |
Provides an entry point to continue configuring the MenuItem that has just been defined. This allows an Icon to be added for instance.
|
|
Finish ( ) : jMenu.Menu |
Returns control back to the underlying menu widget. This in essence says "I've finished defining the menu items" and returns the fluent API back to the menu.
|
|
MenuItems ( MenuItem owner ) : System |
Constructor
|
|
MenuItems ( MenuItem owner, string id ) : System |
Constructor
|
|
SubMenu ( ) : MenuItems |
Entry point for adding sub-menu items using the fluent API.
|
public Add ( string title ) : |
||
title | string | Text to appear in the URL (within the LI container) |
return |
public Add ( string title, Core icon ) : |
||
title | string | Text to appear in the hyperlink |
icon | Core | Icon to display next to the menu item |
return |
public Add ( string title, string url ) : |
||
title | string | Text to appear in the hyperlink |
url | string | URL to navigate to upon selecting the menu item. |
return |
public Add ( string title, string url, Core icon ) : |
||
title | string | Text to appear in the hyperlink |
url | string | URL to navigate to upon selecting the menu item. |
icon | Core | Icon to display next to the menu item |
return |
public AddHtml ( string markup ) : |
||
markup | string | HTML to use |
return |
public MenuItems ( MenuItem owner ) : System | ||
owner | MenuItem | MenuItem object _this_ item belongs to |
return | System |
public MenuItems ( MenuItem owner, string id ) : System | ||
owner | MenuItem | MenuItem object _this_ item belongs to |
id | string | ID to allocate to the item |
return | System |