@elemental/ui / Class

LmnMenuComponent

Decorators:@Component
Selectors:lmn-menu

Menu component

Properties

NameTypeDescription
#virtualViewportDocumentElement
r
HTMLElement | undefined
anchorRef
r
InputSignal<HTMLElement | undefined>

The anchor element of the menu. It will be used as anchor for the popover.

id
r
InputSignal<string>

The id of the menu, used also as attribute id.

isOpen
r
Signal<boolean>

Opening status of the menu.

nativeElement
r
any
negative
r
InputSignalWithTransform<boolean, unknown>

Whether the menu is negative.

position
r
InputSignal<LmnMenuPosition>

The position of the menu when shown.

selectionMode
r
InputSignal<LmnMenuSelectionMode>

The selection mode of the menu.

showDivider
r
InputSignalWithTransform<boolean, unknown>

Whether to show the divider between list items.

state
r
LmnMenuState

Commands to interact with the menu.

title
r
InputSignal<string>

The title of the menu.

Accessors

get parent

No documentation has been provided.

Presentation
get parent(): LmnListItemComponent | undefined;
Type

LmnListItemComponent | undefined

get triggerRef

No documentation has been provided.

Presentation
get triggerRef(): HTMLElement | undefined;
Type

HTMLElement | undefined

Methods

close()

Close the menu.

Presentation
close(): void;
Returns
void

open()

Open the menu.

Presentation
open(): void;
Returns
void

toggle()

Toggle the menu.

Presentation
toggle(): void;
Returns
void