C# Класс Fluqi.Widget.jMenu.Methods

Methods for changing options (after initialisation).
Наследование: Core.Methods
Показать файл Открыть проект

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

Метод Описание
Blur ( ) : void

Removes focus from a menu, resets any active element styles and triggers the menu's blur event.

Close ( ) : void

Removes focus from a menu, resets any active element styles and triggers the menu's blur event.

Collapse ( ) : void

Closes the currently active sub-menu.

CollapseAll ( ) : void

Closes all open sub-menus.

Destroy ( ) : void

Removes the menu functionality completely. This will return the element back to its pre-init state.

Disable ( ) : void

Disables the menu.

Enable ( ) : void

Enables the menu.

Expand ( ) : void

Opens the sub-menu below the currently active item, if one exists.

Focus ( string itemSelector ) : void

Activates a particular menu item, begins opening any sub-menu if present and triggers the menu's focus

GetDisabled ( ) : void

Disables the menu if set to true.

GetIcons ( ) : void

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.

GetMenus ( ) : void

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.

GetPosition ( ) : void

Returns [in JavaScript] the current "position" setting.

GetRole ( ) : void

Customize the ARIA roles used for the menu and menu items. The default uses "menuitem" for items. Setting the role option to "listbox" will use "option" for items. If set to null, no roles will be set, which is useful if the menu is being controlled by another element that is maintaining focus.

IsFirstItem ( ) : void

Returns a boolean value stating whether or not the currently active item is the first item in the menu.

IsLastItem ( ) : void

Returns a boolean value stating whether or not the currently active item is the last item in the menu.

Methods ( Menu menu ) : System

Constructor

Next ( ) : void

Moves active state to next menu item.

NextPage ( ) : void

Moves active state to first menu item below the bottom of a scrollable menu or the last item if not scrollable.

Previous ( ) : void

Moves active state to previous menu item.

PreviousPage ( ) : void

Moves active state to first menu item above the top of a scrollable menu or the first item if not scrollable.

Refresh ( ) : void

Initializes sub-menus and menu items that have not already been initialized. New menu items, including sub-menus can be added to the menu or all of the contents of the menu can be replaced and then initialized with the refresh() method.

Select ( ) : void

Selects the currently active menu item, collapses all sub-menus and triggers the menu's select event.

SetDisabled ( bool value ) : void

Disables the menu if set to true.

SetIcons ( Core submenu ) : void

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.

SetIcons ( string submenu ) : void

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.

SetMenus ( string menus ) : void

Selector for the elements that serve as the menu container, including sub-menus.

SetPosition ( Core position ) : void

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'.

SetPosition ( Core pos1, Core pos2 ) : void

Specifies where the dialog should be displayed. Possible values: An array containing x,y position string values (e.g. ['right','top'] for top right corner)

SetPosition ( int pos1, int pos2 ) : void

Specifies where the dialog should be displayed. Possible values: An array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100])

SetPosition ( string position ) : void

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'.

SetPosition ( string position, bool inDoubleQuotes ) : void

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'.

SetPosition ( string pos1, string pos2 ) : void

Specifies where the dialog should be displayed. Possible values: An array containing x,y position string values (e.g. ['right','top'] for top right corner)

SetPositionJS ( string position ) : void

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'. This entry point does _not_ add quotes to the input value and is indended for passing JavaScript (that is when rendered, the input value will refer to a JavaScript variable for instance).

SetRole ( string role ) : void

Customize the ARIA roles used for the menu and menu items. The default uses "menuitem" for items. Setting the role option to "listbox" will use "option" for items. If set to null, no roles will be set, which is useful if the menu is being controlled by another element that is maintaining focus.

Widget ( ) : void

Returns a jQuery object containing the menu.

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

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

Removes focus from a menu, resets any active element styles and triggers the menu's blur event.
public Blur ( ) : void
Результат void

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

Removes focus from a menu, resets any active element styles and triggers the menu's blur event.
public Close ( ) : void
Результат void

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

Closes the currently active sub-menu.
public Collapse ( ) : void
Результат void

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

Closes all open sub-menus.
public CollapseAll ( ) : void
Результат void

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

Removes the menu functionality completely. This will return the element back to its pre-init state.
public Destroy ( ) : void
Результат void

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

Disables the menu.
public Disable ( ) : void
Результат void

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

Enables the menu.
public Enable ( ) : void
Результат void

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

Opens the sub-menu below the currently active item, if one exists.
public Expand ( ) : void
Результат void

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

Activates a particular menu item, begins opening any sub-menu if present and triggers the menu's focus
public Focus ( string itemSelector ) : void
itemSelector string
Результат void

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

Disables the menu if set to true.
public GetDisabled ( ) : void
Результат void

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

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.
public GetIcons ( ) : void
Результат void

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

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.
public GetMenus ( ) : void
Результат void

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

Returns [in JavaScript] the current "position" setting.
public GetPosition ( ) : void
Результат void

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

Customize the ARIA roles used for the menu and menu items. The default uses "menuitem" for items. Setting the role option to "listbox" will use "option" for items. If set to null, no roles will be set, which is useful if the menu is being controlled by another element that is maintaining focus.
public GetRole ( ) : void
Результат void

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

Returns a boolean value stating whether or not the currently active item is the first item in the menu.
public IsFirstItem ( ) : void
Результат void

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

Returns a boolean value stating whether or not the currently active item is the last item in the menu.
public IsLastItem ( ) : void
Результат void

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

Constructor
public Methods ( Menu menu ) : System
menu Menu Menu object to call
Результат System

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

Moves active state to next menu item.
public Next ( ) : void
Результат void

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

Moves active state to first menu item below the bottom of a scrollable menu or the last item if not scrollable.
public NextPage ( ) : void
Результат void

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

Moves active state to previous menu item.
public Previous ( ) : void
Результат void

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

Moves active state to first menu item above the top of a scrollable menu or the first item if not scrollable.
public PreviousPage ( ) : void
Результат void

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

Initializes sub-menus and menu items that have not already been initialized. New menu items, including sub-menus can be added to the menu or all of the contents of the menu can be replaced and then initialized with the refresh() method.
public Refresh ( ) : void
Результат void

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

Selects the currently active menu item, collapses all sub-menus and triggers the menu's select event.
public Select ( ) : void
Результат void

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

Disables the menu if set to true.
public SetDisabled ( bool value ) : void
value bool
Результат void

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

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.
public SetIcons ( Core submenu ) : void
submenu Core
Результат void

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

Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.
public SetIcons ( string submenu ) : void
submenu string
Результат void

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

Selector for the elements that serve as the menu container, including sub-menus.
public SetMenus ( string menus ) : void
menus string
Результат void

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

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'.
public SetPosition ( Core position ) : void
position Core New position setting
Результат void

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

Specifies where the dialog should be displayed. Possible values: An array containing x,y position string values (e.g. ['right','top'] for top right corner)
public SetPosition ( Core pos1, Core pos2 ) : void
pos1 Core First position setting
pos2 Core Second position setting
Результат void

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

Specifies where the dialog should be displayed. Possible values: An array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100])
public SetPosition ( int pos1, int pos2 ) : void
pos1 int First position setting
pos2 int Second position setting
Результат void

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

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'.
public SetPosition ( string position ) : void
position string New position setting
Результат void

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

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'.
public SetPosition ( string position, bool inDoubleQuotes ) : void
position string New position setting
inDoubleQuotes bool /// true - double quotes (") /// false - single quotes (') ///
Результат void

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

Specifies where the dialog should be displayed. Possible values: An array containing x,y position string values (e.g. ['right','top'] for top right corner)
public SetPosition ( string pos1, string pos2 ) : void
pos1 string First position setting
pos2 string Second position setting
Результат void

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

Specifies where the dialog should be displayed. Possible values: A single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'. This entry point does _not_ add quotes to the input value and is indended for passing JavaScript (that is when rendered, the input value will refer to a JavaScript variable for instance).
public SetPositionJS ( string position ) : void
position string New position setting
Результат void

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

Customize the ARIA roles used for the menu and menu items. The default uses "menuitem" for items. Setting the role option to "listbox" will use "option" for items. If set to null, no roles will be set, which is useful if the menu is being controlled by another element that is maintaining focus.
public SetRole ( string role ) : void
role string
Результат void

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

Returns a jQuery object containing the menu.
public Widget ( ) : void
Результат void