packages/components/eui-menu/eui-menu-item.component.ts
OnInit
OnChanges
FocusableOption
| encapsulation | ViewEncapsulation.None |
| selector | eui-menu-item |
| imports |
RouterLink
RouterLinkActive
NgTemplateOutlet
TranslateModule
EUI_ICON
EUI_BADGE
EUI_ICON_BUTTON
EUI_BUTTON
EuiTooltipDirective
|
| styleUrls | ./styles/_index.scss |
| templateUrl | ./eui-menu-item.component.html |
Properties |
Methods |
|
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
| hasBoldRootLevel |
Type : boolean
|
| hasCollapsedInitials |
Type : boolean
|
| hasExpandIcon |
Type : boolean
|
Default value : true
|
| hasIcon |
Type : boolean
|
| hasIconLabel |
Type : boolean
|
| hasTooltip |
Type : boolean
|
| hasTooltipOnExpanded |
Type : boolean
|
| isCollapsed |
Type : boolean
|
| item |
Type : EuiMenuItem
|
| parent |
Type : EuiMenuItem
|
| expandToggle |
Type : EventEmitter
|
| itemClick |
Type : EventEmitter
|
| attr.aria-disabled |
Type : boolean
|
| attr.aria-expanded |
Type : boolean
|
| attr.aria-haspopup |
Type : boolean
|
| attr.aria-label |
Type : string
|
Default value : ''
|
| attr.role |
Type : string
|
Default value : 'menuitem'
|
| attr.tabindex |
Type : string
|
Default value : '-1'
|
| class |
Type : string
|
| click |
Arguments : '$event'
|
click(event: MouseEvent)
|
| elementIsVisibleInViewport | ||||||
elementIsVisibleInViewport(partiallyVisible)
|
||||||
|
Check if an element is visible in the viewport
Parameters :
Returns :
boolean
|
| Public focus |
focus()
|
|
Returns :
void
|
| Public focusActionIcon |
focusActionIcon()
|
|
Returns :
void
|
| Public onActionIconClick | ||||||
onActionIconClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onActionIconFocusOut |
onActionIconFocusOut()
|
|
Returns :
void
|
| Public onActionIconKeyDown | ||||||
onActionIconKeyDown(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| Public onClick | ||||||
onClick(event: MouseEvent | KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| Public onExpandToggle | ||||||
onExpandToggle(event: Event)
|
||||||
|
Parameters :
Returns :
void
|
| scrollIntoView | ||||
scrollIntoView(properties)
|
||||
|
Scroll the element into view
Parameters :
Returns :
void
|
| Public stopPropagation | ||||||
stopPropagation(event: MouseEvent)
|
||||||
Decorators :
@HostListener('click', ['$event'])
|
||||||
|
Parameters :
Returns :
void
|
| ariaLabel |
Type : string
|
Default value : ''
|
Decorators :
@HostBinding('attr.aria-label')
|
| collapseMenuLabel |
Type : string
|
Default value : 'Collapse'
|
| expandMenuLabel |
Type : string
|
Default value : 'Expand'
|
| isActionIconFocused |
Default value : false
|
| isLabelItem |
Default value : false
|
| isLinkItem |
Default value : false
|
| isUrlItem |
Default value : false
|
| role |
Type : string
|
Default value : 'menuitem'
|
Decorators :
@HostBinding('attr.role')
|
| tabindex |
Type : string
|
Default value : '-1'
|
Decorators :
@HostBinding('attr.tabindex')
|
| cssClasses |
getcssClasses()
|
| ariaHasPopup |
getariaHasPopup()
|
| ariaExpanded |
getariaExpanded()
|
| ariaDisabled |
getariaDisabled()
|
| menuItemTooltip |
getmenuItemTooltip()
|