CodeEditor
Class for code input editor.
Constructors
new CodeEditor()
new CodeEditor(
dart):CodeEditor
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Source
Properties
| Property | Type |
|---|---|
dart | any |
Accessors
onValueChanged
getonValueChanged():Observable<any>
Returns
Observable<any>
Source
root
getroot():HTMLElement
Returns
HTMLElement
Source
value
getvalue():string
setvalue(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
Methods
append()
append(
text):void
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
void
Source
setReadOnly()
setReadOnly(
value):Promise<void>
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
Promise<void>
Source
create()
staticcreate(script,mode,placeholder,options?):CodeEditor
Parameters
| Parameter | Type | Default value |
|---|---|---|
script | string | '' |
mode | string | 'javascript' |
placeholder | string | '' |
options? | ICodeEditorOptions | undefined |