跳到主要内容
版本:1.x

Interface: IEditorActionsProps

molecule.model.IEditorActionsProps

Hierarchy

Properties

className

Optional className: string

Inherited from

IMenuItemProps.className

Defined in

common/types.ts:4


disabled

Optional disabled: boolean

Inherited from

IMenuItemProps.disabled

Defined in

components/menu/menuItem.tsx:26


icon

Optional icon: string | Element

The name of icon

Inherited from

IMenuItemProps.icon

Defined in

components/menu/menuItem.tsx:20


id

id: UniqueId

Overrides

IMenuItemProps.id

Defined in

model/workbench/editor.ts:34


keybinding

Optional keybinding: string

The description of keybinding example: ⇧⌘P

Inherited from

IMenuItemProps.keybinding

Defined in

components/menu/menuItem.tsx:31


name

Optional name: string

Item Name

Inherited from

IMenuItemProps.name

Defined in

components/menu/menuItem.tsx:25


place

Optional place: "outer" | "inner"

Mark the action placed in More menus or outer

Defined in

model/workbench/editor.ts:38


role

Optional role: string

Inherited from

IMenuItemProps.role

Defined in

common/types.ts:5


sortIndex

Optional sortIndex: number

Inherited from

IMenuItemProps.sortIndex

Defined in

components/menu/menuItem.tsx:37


style

Optional style: CSSProperties

Inherited from

IMenuItemProps.style

Defined in

common/types.ts:3


title

Optional title: string

Inherited from

IMenuItemProps.title

Defined in

common/types.ts:2


type

Optional type: "divider"

Inherited from

IMenuItemProps.type

Defined in

components/menu/menuItem.tsx:21

Methods

onClick

Optional onClick(e, item): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
itemIMenuItemProps

Returns

void

Inherited from

IMenuItemProps.onClick

Defined in

components/menu/menuItem.tsx:36


render

Optional render(data): ReactNode

Custom render

Parameters

NameType
dataIMenuItemProps

Returns

ReactNode

Inherited from

IMenuItemProps.render

Defined in

components/menu/menuItem.tsx:35