Class: MonacoEditor
molecule.component.MonacoEditor
Hierarchy
PureComponent
<IMonacoEditorProps
>↳
MonacoEditor
Constructors
constructor
• new MonacoEditor(props
)
Parameters
Name | Type |
---|---|
props | any |
Overrides
PureComponent<IMonacoEditorProps\>.constructor
Defined in
components/monaco/index.tsx:40
Properties
monacoDom
• Private
monacoDom: HTMLDivElement
The dom element of editor container
Defined in
components/monaco/index.tsx:36
monacoInstance
• Private
monacoInstance: undefined
| IStandaloneCodeEditor
The instance of monaco
Defined in
components/monaco/index.tsx:32
monacoService
• Private
Readonly
monacoService: IMonacoService
Defined in
components/monaco/index.tsx:38
Methods
componentDidMount
▸ componentDidMount(): void
Returns
void
Overrides
PureComponent.componentDidMount
Defined in
components/monaco/index.tsx:45
componentDidUpdate
▸ componentDidUpdate(prevProps
): void
Parameters
Name | Type |
---|---|
prevProps | any |
Returns
void
Overrides
PureComponent.componentDidUpdate
Defined in
components/monaco/index.tsx:57
render
▸ render(): Element
Returns
Element
Overrides
PureComponent.render