Menu: API Table
class: LionMenu, lion-menu
Fields
| Name | Privacy | Type | Default | Description | Inherited From |
|---|---|---|---|---|---|
bar | public | boolean | false | Enable bar to use [role=“menubar”] and horizontal navigation | LionMenuCore |
behaveAsAccordion | public | boolean | true | LionMenuCore | |
invokerInteraction | public | string | 'click' | LionMenuCore | |
openableMode | public | 'disclosure'|'overlay' | 'disclosure' | Terminology aligned with https://open-ui.org/components/openable.explainer/ | |
_activateOnTypedChars | protected | boolean | true | LionMenuCore | |
_listRole | protected | string | 'menu' | LionMenuCore | |
_shouldSetupOverlay | protected | boolean | false |
Methods
| Name | Privacy | Description | Parameters | Return | Inherited From |
|---|---|---|---|---|---|
setCheckedIndex | public | Allows groups within one level. In case we deal with menuitemcheckbox, we treat it as multiple choice group | index: number | LionMenuCore | |
_defineOverlayConfig | protected | OverlayConfig | |||
_onListKeyUp | protected | ev: * |
Attributes
| Name | Field | Inherited From |
|---|---|---|
openable-mode | openableMode | |
bar | bar | LionMenuCore |