Interface: IEditorController
molecule.IEditorController
Hierarchy
Partial<Controller>↳
IEditorController
Properties
groupSplitPos
• Optional groupSplitPos: string[]
Defined in
Methods
count
▸ Optional count(name): number
Count the service event
Parameters
| Name | Type | Description |
|---|---|---|
name | string | Event 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
| Name | Type | Description |
|---|---|---|
name | string | Event name |
...args | any | Arguments |
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
onChangeEditorProps
▸ Optional onChangeEditorProps(preProps, nextProps): void
Parameters
| Name | Type |
|---|---|
preProps | IMonacoEditorProps |
nextProps | IMonacoEditorProps |
Returns
void
Defined in
onClickActions
▸ onClickActions(action): void
Parameters
| Name | Type |
|---|---|
action | IEditorActionsProps |
Returns
void
Defined in
onClickContextMenu
▸ Optional onClickContextMenu(e, item, tabItem?): void
Parameters
| Name | Type |
|---|---|
e | MouseEvent<Element, MouseEvent> |
item | IMenuItemProps |
tabItem? | IEditorTab<BuiltInEditorTabDataType> |
Returns
void
Defined in
onCloseAll
▸ Optional onCloseAll(group): void
Parameters
| Name | Type |
|---|---|
group | UniqueId |
Returns
void
Defined in
onCloseOther
▸ Optional onCloseOther(tab, group): void
Parameters
| Name | Type |
|---|---|
tab | IEditorTab<BuiltInEditorTabDataType> |
group | UniqueId |
Returns
void
Defined in
onCloseSaved
▸ Optional onCloseSaved(group): void
Parameters
| Name | Type |
|---|---|
group | UniqueId |
Returns
void
Defined in
onCloseTab
▸ Optional onCloseTab(tabId, group): void
Parameters
| Name | Type |
|---|---|
tabId | UniqueId |
group | UniqueId |
Returns
void
Defined in
onCloseToLeft
▸ Optional onCloseToLeft(tab, group): void
Parameters
| Name | Type |
|---|---|
tab | IEditorTab<BuiltInEditorTabDataType> |
group | UniqueId |
Returns
void
Defined in
onCloseToRight
▸ Optional onCloseToRight(tab, group): void
Parameters
| Name | Type |
|---|---|
tab | IEditorTab<BuiltInEditorTabDataType> |
group | UniqueId |
Returns
void
Defined in
onMoveTab
▸ Optional onMoveTab<T>(updateTabs, group): void
Type parameters
| Name | Type |
|---|---|
T | any |
Parameters
| Name | Type |
|---|---|
updateTabs | IEditorTab<T>[] |
group | UniqueId |
Returns
void
Defined in
onPaneSizeChange
▸ Optional onPaneSizeChange(newSize): void
Parameters
| Name | Type |
|---|---|
newSize | string[] |
Returns
void
Defined in
onSelectTab
▸ Optional onSelectTab(tabId, group): void
Parameters
| Name | Type |
|---|---|
tabId | UniqueId |
group | UniqueId |
Returns
void
Defined in
onUpdateEditorIns
▸ Optional onUpdateEditorIns(editorInstance, groupId): void
Parameters
| Name | Type |
|---|---|
editorInstance | any |
groupId | UniqueId |
Returns
void
Defined in
open
▸ Optional open<T>(tab, groupId?): void
Type parameters
| Name | Type |
|---|---|
T | any |
Parameters
| Name | Type |
|---|---|
tab | IEditorTab<T> |
groupId? | UniqueId |
Returns
void
Defined in
subscribe
▸ Optional subscribe(name, callback): void
Subscribe the service event
Parameters
| Name | Type | Description |
|---|---|---|
name | string | string[] | Event name |
callback | Function | Callback 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
| Name | Type | Description |
|---|---|---|
name | any | The event name |
Returns
void
Inherited from
Partial.unsubscribe