Skip to content

@k8slens/extensions / Exports / Renderer / Component / MenuItem

Class: MenuItem#

Renderer.Component.MenuItem

Hierarchy#

MenuItem

Table of contents#

Constructors#

Properties#

Accessors#

Methods#

Constructors#

constructor#

new MenuItem(props)

Parameters#

Name Type
props MenuItemProps

Overrides#

React.Component<MenuItemProps\>.constructor

Properties#

context#

context: MenuContextValue

Overrides#

React.Component.context


elem#

elem: null | HTMLElement


contextType#

Static contextType: Context<null | MenuContextValue>

Overrides#

React.Component.contextType


defaultProps#

Static defaultProps: object

Accessors#

isFocusable#

get isFocusable(): boolean

Returns#

boolean


get isLink(): boolean

Returns#

boolean

Methods#

bindRef#

Protected bindRef(elem): void

Parameters#

Name Type
elem HTMLElement

Returns#

void


onClick#

onClick(evt): void

Parameters#

Name Type
evt MouseEvent<Element, MouseEvent>

Returns#

void


render#

render(): Element

Returns#

Element

Overrides#

React.Component.render