[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.MenuBaseBuilder-3

MenuBaseBuilder<T, TControl, TBuilder> Class

Defines a builder to configurate MenuBase<T>.

Inheritance
HideObjectMembers
BaseBuilder<TControl, TBuilder>
ComponentBuilder<TControl, TBuilder>
ControlBuilder<TControl, TBuilder>
ItemsBoundControlBuilder<T, TControl, TBuilder>
DropDownBuilder<T, TControl, TBuilder>
ComboBoxBaseBuilder<T, TControl, TBuilder>
MenuBaseBuilder<T, TControl, TBuilder>
Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class MenuBaseBuilder<T, TControl, TBuilder> : ComboBoxBaseBuilder<T, TControl, TBuilder>, IHtmlString where TControl : MenuBase<T> where TBuilder : MenuBaseBuilder<T, TControl, TBuilder>
Type Parameters
Name Description
T
TControl
TBuilder

Constructors

Name Description
MenuBaseBuilder(TControl)

Creates one MenuBaseBuilder<T, TControl, TBuilder> instance to configurate component.

Methods

Name Description
AriaLabel(string)

Configurates AriaLabel. Sets the aria label property of the menu element.

AutoSelectOnFocus(bool)

Configurates AutoSelectOnFocus. Sets a value that determines whether the first enabled item is automatically focused/selected in the menu.

CloseOnLeave(bool)

Configurates CloseOnLeave. Sets a value that determines whether the menu should close automatically when the mouse leave the items.

Command(Action<MenuCommandBuilder>)

Configurates Command.

CommandParameterPath(string)

Configurates CommandParameterPath.

CommandPath(string)

Configurates CommandPath.

Header(string)

Configurates Header.

IsButton(bool)

Configurates IsButton. Sets a value that determines whether menu should act as a split button instead of a regular menu.

OnClientItemClicked(string)

Configurates the OnClientItemClicked client event.

OpenOnHover(bool)

Configurates OpenOnHover. Gets or sets a value that determines whether the menu should open and close automatically when the mouse hovers over the items.

Owner(string)

Configurates Owner. Sets the selector string of the element that owns this menu.

SubItemsPath(string)

Configurates SubItemsPath. Sets the name of the property that contains an array with items to be displayed in a sub-menu.

Extension Methods