C# Class Fluqi.Widget.jSelectMenuItem.SelectMenuItemBase

A set of properties to apply to a set of jQuery UI Tab.
Inheritance: Core.ControlBase
Show file Open project: toepoke/Fluqi Class Usage Examples

Public Methods

Method Description
Finish ( ) : SelectMenuItems

Ends configuration of the option just added and brings the fluent API back a level to allow further select menu items to be added.

WithAttribute ( string attrName, string attrValue ) : SelectMenuItemBase

Registers an HTML attribute to be added to the control when it is rendered.

WithCss ( string cssClasses ) : SelectMenuItemBase

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 ) : SelectMenuItemBase

Registers an ID attribute to be added to the control when it is rendered.

WithStyle ( string styleName, string styleValue ) : SelectMenuItemBase

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.

Protected Methods

Method Description
BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

Override entry-point for the SelectMenuItem and SelectOptGroups classes to render how they should be

HasChildren ( ) : bool

Convenience function for eastablishing if there are any child/sub-menu items off this menu item.

Method Details

BuildTagHtml() protected method

Override entry-point for the SelectMenuItem and SelectOptGroups classes to render how they should be
protected BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
sb Fluqi.Extension.Helpers.jStringBuilder
return void

Finish() public method

Ends configuration of the option just added and brings the fluent API back a level to allow further select menu items to be added.
public Finish ( ) : SelectMenuItems
return SelectMenuItems

HasChildren() protected method

Convenience function for eastablishing if there are any child/sub-menu items off this menu item.
protected HasChildren ( ) : bool
return bool

WithAttribute() public method

Registers an HTML attribute to be added to the control when it is rendered.
public WithAttribute ( string attrName, string attrValue ) : SelectMenuItemBase
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
return SelectMenuItemBase

WithCss() public method

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).
public WithCss ( string cssClasses ) : SelectMenuItemBase
cssClasses string Set of space separated CSS class names to add
return SelectMenuItemBase

WithID() public method

Registers an ID attribute to be added to the control when it is rendered.
public WithID ( string idValue ) : SelectMenuItemBase
idValue string Value for the ID
return SelectMenuItemBase

WithStyle() public method

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.
public WithStyle ( string styleName, string styleValue ) : SelectMenuItemBase
styleName string Name of the style attribute to be added
styleValue string Value of the style to be added
return SelectMenuItemBase