Interface: IEditorController
molecule.IEditorController
Hierarchy
Partial
<Controller
>↳
IEditorController
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
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
getViewState
▸ Optional
getViewState(id
): ICodeEditorViewState
Parameters
Name | Type |
---|---|
id | UniqueId |
Returns
ICodeEditorViewState
Defined in
initEditorEvents
▸ Optional
initEditorEvents(editorInstance
, groupId
): void
Parameters
Name | Type |
---|---|
editorInstance | IStandaloneCodeEditor |
groupId | UniqueId |
Returns
void
Defined in
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 | number [] |
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
, listener
): void
Subscribe the service event
Parameters
Name | Type | Description |
---|---|---|
name | string | string [] | Event name |
listener | Function | Listener function |
Returns
void
Inherited from
Partial.subscribe
Defined in
unsubscribe
▸ Optional
unsubscribe(name
, listener?
): void
Unsubscribe the specific event and the listener function
Parameters
Name | Type | Description |
---|---|---|
name | any | The event name |
listener? | Function | optional, it unsubscribes events via name if not pass the listener function |
Returns
void
Inherited from
Partial.unsubscribe