Method | Description | |
---|---|---|
Add ( string>.Dictionary |
Adds a collection of options to the menu. The "Key" becomes the "value" attribute of the OPTION (in the SELECT tag) The "Value" becomes the readable text of the OPTION (what the user sees in the dropdown)
|
|
Add ( System.Web.Mvc.SelectList options ) : |
Adds a list of SelectListItems to the menu
|
|
Add ( string title, bool isSelected = false ) : |
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, object value, bool isSelected = false ) : |
Adds a new item to the menu
|
|
AddGroup ( string label, bool isDisabled = false ) : |
Adds an OptGroup to the SelectMenu
|
|
ConfigureItem ( ) : |
Provides an entry point to continue configuring the MenuItem that has just been defined. This allows an Icon to be added for instance.
|
|
Finish ( ) : jSelectMenu.SelectMenu |
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.
|
|
FinishGroup ( ) : |
Stipulates that all options have been added for this OptGroup. Control is returned to the SelectMenu control to allow further items (or further OptGroups to be defined).
|
|
SelectMenuItems ( |
Constructor
|
|
SelectMenuItems ( |
Constructor
|
|
SubMenu ( ) : |
Entry point for adding sub-menu items using the fluent API.
|
public Add ( string>.Dictionary |
||
dict | string>.Dictionary | Dictionary of options to add |
return |
public Add ( System.Web.Mvc.SelectList options ) : |
||
options | System.Web.Mvc.SelectList | List of items |
return |
public Add ( string title, bool isSelected = false ) : |
||
title | string | Text to appear in the URL (within the LI container) |
isSelected | bool | Flags whether this is the selected item in the list |
return |
public Add ( string title, object value, bool isSelected = false ) : |
||
title | string | Text to appear in the list |
value | object | Value associated with the item |
isSelected | bool | Flags whether this is the selected item in the list |
return |
public AddGroup ( string label, bool isDisabled = false ) : |
||
label | string | Label of the group |
isDisabled | bool | /// Whether the group (and all it's child options) are disabled /// Note: I'm not sure if the jQuery UI select-menu supports this however /// |
return |
public SelectMenuItems ( |
||
owner | SelectMenuItem object _this_ item belongs to | |
return | System |
public SelectMenuItems ( |
||
owner | SelectMenuItem object _this_ item belongs to | |
id | string | ID to assign to this menu item |
return | System |