Skip to main content
Version: 0.9.0-beta.2

Interface: IEditorGroup<E, T>

molecule.model.IEditorGroup

Type parameters

NameType
Eany
Tany

Hierarchy

Implemented by

Properties

actions

Optional actions: IEditorActionsProps[]

Defined in

src/model/workbench/editor.ts:53


activeTab

Optional activeTab: UniqueId

Inherited from

ITabsProps.activeTab

Defined in

src/components/tabs/index.tsx:33


className

Optional className: string

Inherited from

ITabsProps.className

Defined in

src/components/tabs/index.tsx:21


closable

Optional closable: boolean

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

Inherited from

ITabsProps.closable

Defined in

src/components/tabs/index.tsx:27


data

Optional data: ITabProps<any, any>[]

Inherited from

ITabsProps.data

Defined in

src/components/tabs/index.tsx:32


editable

Optional editable: boolean

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

Inherited from

ITabsProps.editable

Defined in

src/components/tabs/index.tsx:31


editorInstance

Optional editorInstance: E

Defined in

src/model/workbench/editor.ts:55


id

id: UniqueId

Defined in

src/model/workbench/editor.ts:48


Optional menu: IMenuItemProps[]

Defined in

src/model/workbench/editor.ts:54


role

Optional role: string

Inherited from

ITabsProps.role

Defined in

src/components/tabs/index.tsx:23


style

Optional style: CSSProperties

Inherited from

ITabsProps.style

Defined in

src/components/tabs/index.tsx:22


tab

Optional tab: IEditorTab<T>

Current editor group tab

Defined in

src/model/workbench/editor.ts:52


type

Optional type: TabsType

Default is line

Inherited from

ITabsProps.type

Defined in

src/components/tabs/index.tsx:37

Methods

onCloseTab

Optional onCloseTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Inherited from

ITabsProps.onCloseTab

Defined in

src/components/tabs/index.tsx:38


onContextMenu

Optional onContextMenu(e, tab): void

Parameters

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

Returns

void

Inherited from

ITabsProps.onContextMenu

Defined in

src/components/tabs/index.tsx:39


onMoveTab

Optional onMoveTab(tabs): void

Parameters

NameType
tabsITabProps<any, any>[]

Returns

void

Inherited from

ITabsProps.onMoveTab

Defined in

src/components/tabs/index.tsx:40


onSelectTab

Optional onSelectTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Inherited from

ITabsProps.onSelectTab

Defined in

src/components/tabs/index.tsx:41