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:1260

Properties

PropertyType
dartany

Accessors

onValueChanged

get onValueChanged(): Observable<any>

Returns

Observable<any>

Source

src/widgets.ts:1281


root

get root(): HTMLElement

Returns

HTMLElement

Source

src/widgets.ts:1276


value

get value(): string

set value(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/widgets.ts:1278

Methods

append()

append(text): void

Parameters

ParameterType
textstring

Returns

void

Source

src/widgets.ts:1268


setReadOnly()

setReadOnly(value): Promise<void>

Parameters

ParameterType
valueboolean

Returns

Promise<void>

Source

src/widgets.ts:1272


create()

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

Parameters

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

Returns

CodeEditor

Source

src/widgets.ts:1264