C# Класс Fluqi.Widget.jSelectMenuItem.SelectMenuItems

Defines the logic for sub-selectMenu items.
Наследование: Core.ControlBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

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
Результат SelectMenuItems

Add() публичный Метод

Adds a list of SelectListItems to the menu
public Add ( System.Web.Mvc.SelectList options ) : SelectMenuItems
options System.Web.Mvc.SelectList List of items
Результат SelectMenuItems

Add() публичный Метод

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
Результат SelectMenuItems

Add() публичный Метод

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
Результат SelectMenuItems

AddGroup() публичный Метод

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 ///
Результат SelectMenuItems

ConfigureItem() публичный Метод

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
Результат SelectMenuItem

Finish() публичный Метод

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
Результат jSelectMenu.SelectMenu

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).
public FinishGroup ( ) : SelectMenuItems
Результат SelectMenuItems

SelectMenuItems() публичный Метод

Constructor
public SelectMenuItems ( SelectMenuItemBase owner ) : System
owner SelectMenuItemBase SelectMenuItem object _this_ item belongs to
Результат System

SelectMenuItems() публичный Метод

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
Результат System

SubMenu() публичный Метод

Entry point for adding sub-menu items using the fluent API.
public SubMenu ( ) : SelectMenuItems
Результат SelectMenuItems