Skip to main content
Version: 0.9.0-beta.2

Interface: IEditorController

molecule.IEditorController

Hierarchy

Properties

groupSplitPos

Optional groupSplitPos: string[]

Defined in

src/controller/editor.tsx:26

Methods

count

Optional count(name): number

Count the service event

Parameters

NameTypeDescription
namestringEvent name

Returns

number

Inherited from

Partial.count

Defined in

src/common/event/eventBus.ts:28


emit

Optional emit(name, ...args): void

Emit the service event

Parameters

NameTypeDescription
namestringEvent name
...argsanyArguments

Returns

void

Inherited from

Partial.emit

Defined in

src/common/event/eventBus.ts:20


initView

Optional Abstract initView(): void

Returns

void

Inherited from

Partial.initView

Defined in

src/react/controller.ts:4


onChangeEditorProps

Optional onChangeEditorProps(preProps, nextProps): void

Parameters

NameType
prePropsIMonacoEditorProps
nextPropsIMonacoEditorProps

Returns

void

Defined in

src/controller/editor.tsx:39


onClickActions

onClickActions(action): void

Parameters

NameType
actionIEditorActionsProps

Returns

void

Defined in

src/controller/editor.tsx:45


onClickContextMenu

Optional onClickContextMenu(e, item, tabItem?): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
itemIMenuItemProps
tabItem?IEditorTab<BuiltInEditorTabDataType>

Returns

void

Defined in

src/controller/editor.tsx:28


onCloseAll

Optional onCloseAll(group): void

Parameters

NameType
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:33


onCloseOther

Optional onCloseOther(tab, group): void

Parameters

NameType
tabIEditorTab<BuiltInEditorTabDataType>
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:37


onCloseSaved

Optional onCloseSaved(group): void

Parameters

NameType
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:38


onCloseTab

Optional onCloseTab(tabId, group): void

Parameters

NameType
tabIdUniqueId
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:34


onCloseToLeft

Optional onCloseToLeft(tab, group): void

Parameters

NameType
tabIEditorTab<BuiltInEditorTabDataType>
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:35


onCloseToRight

Optional onCloseToRight(tab, group): void

Parameters

NameType
tabIEditorTab<BuiltInEditorTabDataType>
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:36


onMoveTab

Optional onMoveTab<T>(updateTabs, group): void

Type parameters

NameType
Tany

Parameters

NameType
updateTabsIEditorTab<T>[]
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:43


onPaneSizeChange

Optional onPaneSizeChange(newSize): void

Parameters

NameType
newSizestring[]

Returns

void

Defined in

src/controller/editor.tsx:47


onSelectTab

Optional onSelectTab(tabId, group): void

Parameters

NameType
tabIdUniqueId
groupUniqueId

Returns

void

Defined in

src/controller/editor.tsx:44


onUpdateEditorIns

Optional onUpdateEditorIns(editorInstance, groupId): void

Parameters

NameType
editorInstanceany
groupIdUniqueId

Returns

void

Defined in

src/controller/editor.tsx:46


open

Optional open<T>(tab, groupId?): void

Type parameters

NameType
Tany

Parameters

NameType
tabIEditorTab<T>
groupId?UniqueId

Returns

void

Defined in

src/controller/editor.tsx:27


subscribe

Optional subscribe(name, callback): void

Subscribe the service event

Parameters

NameTypeDescription
namestring | string[]Event name
callbackFunctionCallback function

Returns

void

Inherited from

Partial.subscribe

Defined in

src/common/event/eventBus.ts:11


unsubscribe

Optional unsubscribe(name): void

Unsubscribe the specific event

Parameters

NameTypeDescription
nameanyThe event name

Returns

void

Inherited from

Partial.unsubscribe

Defined in

src/common/event/eventBus.ts:37