Skip to main content

CodeEditor

Class for code input editor.

Constructors

new CodeEditor()

new CodeEditor(dart): CodeEditor

Parameters

ParameterType
dartany

Returns

CodeEditor

Source

src/widgets.ts:1042

Properties

PropertyType
dartany

Accessors

onValueChanged

get onValueChanged(): Observable<any>

Returns

Observable<any>

Source

src/widgets.ts:1063


root

get root(): HTMLElement

Returns

HTMLElement

Source

src/widgets.ts:1058


value

get value(): string

set value(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/widgets.ts:1060

Methods

append()

append(text): void

Parameters

ParameterType
textstring

Returns

void

Source

src/widgets.ts:1050


setReadOnly()

setReadOnly(value): Promise<void>

Parameters

ParameterType
valueboolean

Returns

Promise<void>

Source

src/widgets.ts:1054


create()

static create(script, mode, placeholder, options?): CodeEditor

Parameters

ParameterTypeDefault value
scriptstring''
modestring'javascript'
placeholderstring''
options?ICodeEditorOptionsundefined

Returns

CodeEditor

Source

src/widgets.ts:1046