Aller au contenu principal

LgMenuItem

Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Catégorie : MenuItem
Hérite de : LgCustomMenuItem

Render menu item.

Paramètres​

ParamètreTypeDescription
AutoHideboolGets or sets the auto hide property (hide drop-down menu when no sub-contents are displayed).
ChildContentRenderFragmentGet or set the sub menu items inside this menu item.
CommandArgumentobjectThe argument value associated to the command.
CommandNamestringThe name of the command to send to the handler of commands.
ConfirmationMessagestringGets or sets the confirmation message to show before doing the action. Warning : Don't work with the CommandName parameter.
CssClassstringGets or sets the CSS class for the menu item.
CustomContentRenderFragmentGet or set the custom render for this item.
HasSeparatorboolGets or sets if the menu item render a separator before himself.
HideDropDownArrowbool?Gets or sets if the drown down have an arrow icon.
HideRootLevelTextbool?By default, the text display depends of the menu container : The text is not displayed in toolbar by default.
IconNamestringName of the icon.
LinkLgPageLinkDirect link
ModalModalSize?The windows modal size. if not null, the Uri is openned to a new modal.
OnClickEventCallback<ActionEventArgs>Get or set the action executer when user click on the menu
ScrollableboolGets or sets if the menu have a vertical scroll bar when the list of sub-items is too large. WARNING ! Scrollable item list can't have sub-menus.
ShowTextAsTooltipbool?By default, the tooltip display depends of the menu container.
TagstringGet or set the tag of the menu
TargetstringThe name of the browser window in which the URI should be opened.
TextstringGet or set the text of the menu
UristringThe URI to open.

Paramètres en cascade​

ParamètreTypeDescription
MenuRenderLgMenuRenderMenu position (MenuTop, MenuToolbar, MenuSidebar, MenuAppTabContainer)

Paramètres en cascade hérités de LgCustomMenuItem​

ParamètreTypeDescription
ParentMenuItemLgCustomMenuItemParent menu item.

Paramètres hérités de LgAriaComponentBase​

ParamètreTypeDescription
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label