C# Class Fluqi.Widget.jSelectMenuItem.SelectMenuItems

Defines the logic for sub-selectMenu items.
Inheritance: Core.ControlBase
Show file Open project: toepoke/Fluqi

Public Methods

Method Description
Add ( string>.Dictionary dict ) : SelectMenuItems

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 ) : SelectMenuItems

Adds a list of SelectListItems to the menu

Add ( string title, bool isSelected = false ) : SelectMenuItems

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 ) : SelectMenuItems

Adds a new item to the menu

AddGroup ( string label, bool isDisabled = false ) : SelectMenuItems

Adds an OptGroup to the SelectMenu

ConfigureItem ( ) : SelectMenuItem

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 ( ) : SelectMenuItems

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 ( SelectMenuItemBase owner ) : System

Constructor

SelectMenuItems ( SelectMenuItemBase owner, string id ) : System

Constructor

SubMenu ( ) : SelectMenuItems

Entry point for adding sub-menu items using the fluent API.

Method Details

Add() public method

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)
public Add ( string>.Dictionary dict ) : SelectMenuItems
dict string>.Dictionary Dictionary of options to add
return SelectMenuItems

Add() public method

Adds a list of SelectListItems to the menu
public Add ( System.Web.Mvc.SelectList options ) : SelectMenuItems
options System.Web.Mvc.SelectList List of items
return SelectMenuItems

Add() public method

Adds a new item to the menu
This entry point has no URL on click. The hyperlink will have a URL of "#".
public Add ( string title, bool isSelected = false ) : SelectMenuItems
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 SelectMenuItems

Add() public method

Adds a new item to the menu
public Add ( string title, object value, bool isSelected = false ) : SelectMenuItems
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 SelectMenuItems

AddGroup() public method

Adds an OptGroup to the SelectMenu
public AddGroup ( string label, bool isDisabled = false ) : SelectMenuItems
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 SelectMenuItems

ConfigureItem() public method

Provides an entry point to continue configuring the MenuItem that has just been defined. This allows an Icon to be added for instance.
public ConfigureItem ( ) : SelectMenuItem
return SelectMenuItem

Finish() public method

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.
public Finish ( ) : jSelectMenu.SelectMenu
return jSelectMenu.SelectMenu

FinishGroup() public method

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).
public FinishGroup ( ) : SelectMenuItems
return SelectMenuItems

SelectMenuItems() public method

Constructor
public SelectMenuItems ( SelectMenuItemBase owner ) : System
owner SelectMenuItemBase SelectMenuItem object _this_ item belongs to
return System

SelectMenuItems() public method

Constructor
public SelectMenuItems ( SelectMenuItemBase owner, string id ) : System
owner SelectMenuItemBase SelectMenuItem object _this_ item belongs to
id string ID to assign to this menu item
return System

SubMenu() public method

Entry point for adding sub-menu items using the fluent API.
public SubMenu ( ) : SelectMenuItems
return SelectMenuItems