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

Defines the logic and rendering of a single option.
Наследование: SelectMenuItemBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
SelectMenuItem ( SelectMenuItemBase parent ) : System

Constructor for a child menu option

SelectMenuItem ( jSelectMenu owner ) : System

Constructor

SetDisabled ( ) : SelectMenuItem

Sets this menu item as disabled

SetIcon ( Core value ) : SelectMenuItem

Sets the icon which appears to the left of the menu item. This is one of the built in icons provdided by the jQuery UI framework.

SetIcon ( string cssClass ) : SelectMenuItem

Sets the icon which appears to the left of the menu title.

Use this for adding your own icon. The "ui-icon" jQuery UI class will still be added first (so you can use this for sizing), but the "ui-icon" prefix won't be added in front of your CSS class.

SetSelected ( bool selected ) : SelectMenuItem

Flags that this item is selected (or not)

SetTag ( string value ) : SelectMenuItem

Sets the tag to use (should only be "OPTION" really)

SetTitle ( string title ) : SelectMenuItem

Changes the title that appears in the menu item.

Dunno why you'd want to do this after it's already been defined when adding the menu item but I'm leaving it here if only for the sake of consistency with the API.

SetValue ( object value ) : SelectMenuItem

Changes the value of the menu item.

Защищенные методы

Метод Описание
BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

Builds up the Html for a select menuitem

RenderChildren ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

Renders the list of SelectMenuItems to the string builder. Note: For the SelectMenu this only happens for the root (i.e. this isn't recursive like the Menu control)

Reset ( ) : void

Resets the object back to a known state.

Приватные методы

Метод Описание
RenderCloseItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
RenderOpenItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
RenderRootCloseItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
RenderRootOpenItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

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

BuildTagHtml() защищенный Метод

Builds up the Html for a select menuitem
protected BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
sb Fluqi.Extension.Helpers.jStringBuilder
Результат void

RenderChildren() защищенный Метод

Renders the list of SelectMenuItems to the string builder. Note: For the SelectMenu this only happens for the root (i.e. this isn't recursive like the Menu control)
protected RenderChildren ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
sb Fluqi.Extension.Helpers.jStringBuilder StringBuilder
Результат void

Reset() защищенный Метод

Resets the object back to a known state.
protected Reset ( ) : void
Результат void

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

Constructor for a child menu option
public SelectMenuItem ( SelectMenuItemBase parent ) : System
parent SelectMenuItemBase SelectMenuItem object _this_ item belongs to
Результат System

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

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

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

Sets this menu item as disabled
public SetDisabled ( ) : SelectMenuItem
Результат SelectMenuItem

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

Sets the icon which appears to the left of the menu item. This is one of the built in icons provdided by the jQuery UI framework.
public SetIcon ( Core value ) : SelectMenuItem
value Core
Результат SelectMenuItem

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

Sets the icon which appears to the left of the menu title.
Use this for adding your own icon. The "ui-icon" jQuery UI class will still be added first (so you can use this for sizing), but the "ui-icon" prefix won't be added in front of your CSS class.
public SetIcon ( string cssClass ) : SelectMenuItem
cssClass string
Результат SelectMenuItem

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

Flags that this item is selected (or not)
public SetSelected ( bool selected ) : SelectMenuItem
selected bool selected value
Результат SelectMenuItem

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

Sets the tag to use (should only be "OPTION" really)
public SetTag ( string value ) : SelectMenuItem
value string
Результат SelectMenuItem

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

Changes the title that appears in the menu item.
Dunno why you'd want to do this after it's already been defined when adding the menu item but I'm leaving it here if only for the sake of consistency with the API.
public SetTitle ( string title ) : SelectMenuItem
title string
Результат SelectMenuItem

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

Changes the value of the menu item.
public SetValue ( object value ) : SelectMenuItem
value object value
Результат SelectMenuItem