Skip to main content

Class: EditorModel

model.EditorModel

Implements

Table of contents

Constructors

Properties

Constructors

constructor

new EditorModel(current?, groups?, entry, editorOptions?): EditorModel

Parameters

NameTypeDefault value
currentnull | IEditorGroup\<any, any>null
groupsIEditorGroup\<any, any>[][]
entryReactNodeundefined
editorOptionsIEditorOptions{}

Returns

EditorModel

Defined in

src/model/workbench/editor.ts:125

Properties

current

current: null | IEditorGroup\<any, any>

Current editor group

Implementation of

IEditor.current

Defined in

src/model/workbench/editor.ts:117


editorOptions

editorOptions: IEditorOptions

Built-in editor options, there is main apply it to monaco-editor

Implementation of

IEditor.editorOptions

Defined in

src/model/workbench/editor.ts:123


entry

entry: ReactNode

The welcome page of editor bench

Implementation of

IEditor.entry

Defined in

src/model/workbench/editor.ts:121


groups

groups: IEditorGroup\<any, any>[]

Editor Groups

Implementation of

IEditor.groups

Defined in

src/model/workbench/editor.ts:119