C# Class Fluqi.Widget.jMenuItem.MenuItems

Defines the logic for sub-menu items.
Inheritance: Core.ControlBase
显示文件 Open project: toepoke/Fluqi

Public Methods

Method Description
Add ( string title ) : MenuItems

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, Core icon ) : MenuItems

Adds a new item to the menu.

Add ( string title, string url ) : MenuItems

Adds a new item to the menu.

Add ( string title, string url, Core icon ) : MenuItems

Adds a new item to the menu.

AddDivider ( ) : MenuItems

Adds a divider into the menu. Useful if you want to group certain items

AddHtml ( string markup ) : MenuItems

Adds a new item to the menu, this replaces the hyperlink, but not the LI (or defined separator).

Back ( ) : MenuItems

Returns control to the parent sub-menu (allows the user to continue adding further menu items at the previous level).

Configure ( ) : MenuItem

Provides an entry point to continue configuring the MenuItem that has just been defined. This allows an Icon to be added for instance.

Finish ( ) : jMenu.Menu

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.

MenuItems ( MenuItem owner ) : System

Constructor

MenuItems ( MenuItem owner, string id ) : System

Constructor

SubMenu ( ) : MenuItems

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

Method Details

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 ) : MenuItems
title string Text to appear in the URL (within the LI container)
return MenuItems

Add() public method

Adds a new item to the menu.
public Add ( string title, Core icon ) : MenuItems
title string Text to appear in the hyperlink
icon Core Icon to display next to the menu item
return MenuItems

Add() public method

Adds a new item to the menu.
public Add ( string title, string url ) : MenuItems
title string Text to appear in the hyperlink
url string URL to navigate to upon selecting the menu item.
return MenuItems

Add() public method

Adds a new item to the menu.
public Add ( string title, string url, Core icon ) : MenuItems
title string Text to appear in the hyperlink
url string URL to navigate to upon selecting the menu item.
icon Core Icon to display next to the menu item
return MenuItems

AddDivider() public method

Adds a divider into the menu. Useful if you want to group certain items
public AddDivider ( ) : MenuItems
return MenuItems

AddHtml() public method

Adds a new item to the menu, this replaces the hyperlink, but not the LI (or defined separator).
public AddHtml ( string markup ) : MenuItems
markup string HTML to use
return MenuItems

Back() public method

Returns control to the parent sub-menu (allows the user to continue adding further menu items at the previous level).
public Back ( ) : MenuItems
return MenuItems

Configure() 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 Configure ( ) : MenuItem
return MenuItem

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 ( ) : jMenu.Menu
return jMenu.Menu

MenuItems() public method

Constructor
public MenuItems ( MenuItem owner ) : System
owner MenuItem MenuItem object _this_ item belongs to
return System

MenuItems() public method

Constructor
public MenuItems ( MenuItem owner, string id ) : System
owner MenuItem MenuItem object _this_ item belongs to
id string ID to allocate to the item
return System

SubMenu() public method

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