메소드 | 설명 | |
---|---|---|
Finish ( ) : |
Ends configuration of the menu item just added and brings the fluent API back a level to allow further menu items to be added.
|
|
MenuItem ( |
Constructor
|
|
MenuItem ( jMenu owner, string id ) : System |
Constructor
|
|
SetAsDivider ( ) : |
Sets this menu-item as a divider.
|
|
SetDisabled ( ) : |
Sets this menu item as disabled
|
|
SetIcon ( Core value ) : |
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 ) : |
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. |
|
SetTag ( string value ) : |
Sets the LI tag to use
|
|
SetTargetURL ( string value ) : |
Sets the URL to navigate to from the menu (this replaces the default "#" href).
|
|
SetTitle ( string value ) : |
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. |
|
WithAttribute ( string attrName, string attrValue ) : |
Registers an HTML attribute to be added to the control when it is rendered.
|
|
WithCss ( string cssClasses ) : |
Registers a set of CSS class names to be added to the control when it is rendered. This is in addition to jQuery UI styles that may appear (see RenderCss property).
|
|
WithID ( string idValue ) : |
Registers an ID attribute to be added to the control when it is rendered.
|
|
WithStyle ( string styleName, string styleValue ) : |
Registers an embedded style setting to be added to the control when it is rendered. These are written out as part of the "style" attribute, so we might add 'WithStyle("border", "solid 1px blue")' for example.
|
메소드 | 설명 | |
---|---|---|
BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void |
Builds up the Html for a menu-item
|
|
HasChildren ( ) : bool |
Convenience function for eastablishing if there are any child/sub-menu items off this menu item.
|
|
RenderChildren ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void |
Renders the list of MenuItems to the string builder.
|
|
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 |
protected BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void | ||
sb | Fluqi.Extension.Helpers.jStringBuilder | |
리턴 | void |
public MenuItem ( |
||
parent | MenuItem object _this_ item belongs to | |
리턴 | System |
public MenuItem ( jMenu owner, string id ) : System | ||
owner | jMenu | Menu object _this_ item belongs to |
id | string | ID to assign to the MenuItem object |
리턴 | System |
protected RenderChildren ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void | ||
sb | Fluqi.Extension.Helpers.jStringBuilder | StringBuilder |
리턴 | void |
public WithAttribute ( string attrName, string attrValue ) : |
||
attrName | string | Name of the HTML attribute, e.g. "Tab" or "id" for example |
attrValue | string | Value to be applied when the attribute is rendered |
리턴 |
public WithCss ( string cssClasses ) : |
||
cssClasses | string | Set of space separated CSS class names to add |
리턴 |
public WithID ( string idValue ) : |
||
idValue | string | Value for the ID |
리턴 |
public WithStyle ( string styleName, string styleValue ) : |
||
styleName | string | Name of the style attribute to be added |
styleValue | string | Value of the style to be added |
리턴 |