[]
        
(Showing Draft Content)

C1.Web.Mvc.TagHelpers.MenuBaseTagHelper-2

MenuBaseTagHelper<T, TControl> Class

ITagHelper implementation for MenuBase<T>.

Inheritance
BaseTagHelper<TControl>
DropDownTagHelper<T, TControl>
MenuBaseTagHelper<T, TControl>
Namespace: C1.Web.Mvc.TagHelpers
Assembly: C1.AspNetCore.Mvc.dll
Syntax
public abstract class MenuBaseTagHelper<T, TControl> : ComboBoxBaseTagHelper<T, TControl>, ITagHelper, ITagHelperComponent, ITemplateTagHelper where TControl : MenuBase<T>
Type Parameters
Name Description
T
TControl

Constructors

Name Description
MenuBaseTagHelper()

Properties

Name Description
AriaLabel

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

AutoExpandSelection

Configurates AutoExpandSelection. Sets a value that indicates whether the control should automatically expand the selection to whole words/numbers when the control is clicked.

AutoSelectOnFocus

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

CanExecuteCommand

This method returns a Boolean value that determines whether the controller can execute the command.

CloseOnLeave

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

CommandParameterPath

Configurates CommandParameterPath.

CommandPath

Configurates CommandPath.

ExecuteCommand

This method executes the command.

Header

Configurates Header.

HeaderPath

Configurates HeaderPath. Sets the name of a property to use for getting the value displayed in the control's input element.

IsButton

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

ItemClicked

Configurates the OnClientItemClicked client event.

OpenOnHover

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

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

SubItemsPath

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