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

Properties

PropertyType
dartany

Accessors

onValueChanged

get onValueChanged(): Observable<any>

Returns

Observable<any>

Source

src/widgets.ts:1289


root

get root(): HTMLElement

Returns

HTMLElement

Source

src/widgets.ts:1284


value

get value(): string

set value(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/widgets.ts:1286

Methods

append()

append(text): void

Parameters

ParameterType
textstring

Returns

void

Source

src/widgets.ts:1276


setReadOnly()

setReadOnly(value): Promise<void>

Parameters

ParameterType
valueboolean

Returns

Promise<void>

Source

src/widgets.ts:1280


create()

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

Parameters

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

Returns

CodeEditor

Source

src/widgets.ts:1272