Skip to main content
Version: 0.9.0-beta.2

Interface: IMenuItemProps

molecule.component.IMenuItemProps

Hierarchy

Indexable

[key: string]: any

Properties

className

Optional className: string

Inherited from

HTMLElementProps.className

Defined in

src/common/types.ts:4


disabled

Optional disabled: boolean

Defined in

src/components/menu/menuItem.tsx:26


icon

Optional icon: string | Element

The name of icon

Defined in

src/components/menu/menuItem.tsx:20


id

id: UniqueId

Defined in

src/components/menu/menuItem.tsx:16


keybinding

Optional keybinding: string

The description of keybinding example: ⇧⌘P

Defined in

src/components/menu/menuItem.tsx:31


name

Optional name: string

Item Name

Defined in

src/components/menu/menuItem.tsx:25


role

Optional role: string

Inherited from

HTMLElementProps.role

Defined in

src/common/types.ts:5


sortIndex

Optional sortIndex: number

Defined in

src/components/menu/menuItem.tsx:37


style

Optional style: CSSProperties

Inherited from

HTMLElementProps.style

Defined in

src/common/types.ts:3


title

Optional title: string

Inherited from

HTMLElementProps.title

Defined in

src/common/types.ts:2


type

Optional type: "divider"

Defined in

src/components/menu/menuItem.tsx:21

Methods

onClick

Optional onClick(e, item): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
itemIMenuItemProps

Returns

void

Defined in

src/components/menu/menuItem.tsx:36


render

Optional render(data): ReactNode

Custom render

Parameters

NameType
dataIMenuItemProps

Returns

ReactNode

Defined in

src/components/menu/menuItem.tsx:35