Menu
LmnMenuComponent
import { LmnMenuComponent } from '@elemental/ui';
Decorators: |
|
Selectors: |
|
Properties
Name | Type | Description |
---|---|---|
#virtualViewportDocumentElement r | HTMLElement | undefined | |
anchorRef r |
| The anchor element of the menu. It will be used as anchor for the popover. |
id r |
| The id of the menu, used also as attribute id. |
isOpen r |
| Opening status of the menu. |
nativeElement r | any | |
negative r |
| Whether the menu is negative. |
position r |
| The position of the menu when shown. |
selectionMode r |
| The selection mode of the menu. |
showDivider r |
| Whether to show the divider between list items. |
state r | LmnMenuState | Commands to interact with the menu. |
title r |
| The title of the menu. |
Accessors
get parent |
---|
No documentation has been provided. |
Presentation
|
Type |
get triggerRef |
---|
No documentation has been provided. |
Presentation
|
Type
|
Methods
close() |
---|
Close the menu. |
Presentation
|
Returnsvoid |
open() |
---|
Open the menu. |
Presentation
|
Returnsvoid |
toggle() |
---|
Toggle the menu. |
Presentation
|
Returnsvoid |
LmnMenuTriggerDirective
import { LmnMenuTriggerDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Properties
Name | Type | Description |
---|---|---|
#initializeMenuTriggerManager |
| |
menu r |
| The menu to be opened/closed by this trigger. |
Methods
toggle() |
---|
Open/close the menu. |
Presentation
|
Returnsvoid |
LmnMenuParentDirective
import { LmnMenuParentDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Implements: |
|
Properties
Name | Type | Description |
---|---|---|
active r |
| Activate the list item as submenu trigger. If false, the linked submenu will be removed from the DOM. |
menu r |
| The menu to be opened/closed by this trigger. |