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

Interface: IEditorGroup<E, T>

molecule.model.IEditorGroup

Type parameters

NameType
Eany
Tany

Hierarchy

Implemented by

Properties

actions

Optional actions: IEditorActionsProps[]

Defined in

model/workbench/editor.ts:54


activeTab

Optional activeTab: UniqueId

Inherited from

ITabsProps.activeTab

Defined in

components/tabs/index.tsx:36


className

Optional className: string

Inherited from

ITabsProps.className

Defined in

components/tabs/index.tsx:24


closable

Optional closable: boolean

deprecated For now, we don't need to control the global closable

Inherited from

ITabsProps.closable

Defined in

components/tabs/index.tsx:30


data

Optional data: ITabProps<any, any>[]

Inherited from

ITabsProps.data

Defined in

components/tabs/index.tsx:35


editable

Optional editable: boolean

deprecated For now, we don't need to control the global editable

Inherited from

ITabsProps.editable

Defined in

components/tabs/index.tsx:34


editorInstance

Optional editorInstance: E

Defined in

model/workbench/editor.ts:56


id

id: UniqueId

Defined in

model/workbench/editor.ts:49


Optional menu: IMenuItemProps[]

Defined in

model/workbench/editor.ts:55


role

Optional role: string

Inherited from

ITabsProps.role

Defined in

components/tabs/index.tsx:26


style

Optional style: CSSProperties

Inherited from

ITabsProps.style

Defined in

components/tabs/index.tsx:25


tab

Optional tab: IEditorTab<T>

Current editor group tab

Defined in

model/workbench/editor.ts:53


type

Optional type: TabsType

Default is line

Inherited from

ITabsProps.type

Defined in

components/tabs/index.tsx:40

Methods

onCloseTab

Optional onCloseTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Inherited from

ITabsProps.onCloseTab

Defined in

components/tabs/index.tsx:41


onContextMenu

Optional onContextMenu(e, tab): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
tabITabProps<any, any>

Returns

void

Inherited from

ITabsProps.onContextMenu

Defined in

components/tabs/index.tsx:42


onMoveTab

Optional onMoveTab(tabs): void

Parameters

NameType
tabsITabProps<any, any>[]

Returns

void

Inherited from

ITabsProps.onMoveTab

Defined in

components/tabs/index.tsx:43


onSelectTab

Optional onSelectTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Inherited from

ITabsProps.onSelectTab

Defined in

components/tabs/index.tsx:44