TextEditor
Extends:
The TextEditor
component displays a textarea with controls, including a
submit button.
Attrs
composer
submitLabel
value
placeholder
disabled
preview
Member Summary
Public Members | ||
public |
disabled: * Whether the editor is disabled. |
|
public |
The value of the editor. |
Method Summary
Public Methods | ||
public |
buildEditor(dom: *): * |
|
public |
buildEditorParams(): {"classNames": *, "disabled": *, "placeholder": *, "value": *, "oninput": *, "inputListeners": *, "onsubmit": *} |
|
public |
Build an item list for the text editor controls. |
|
public |
oncreate(vnode: *) |
|
public |
oninit(vnode: *) |
|
public |
Handle input into the textarea. |
|
public |
onsubmit() Handle the submit button being clicked. |
|
public |
onupdate(vnode: *) |
|
public |
Build an item list for the toolbar controls. |
|
public |
view(): * |
Public Members
Public Methods
public buildEditorParams(): {"classNames": *, "disabled": *, "placeholder": *, "value": *, "oninput": *, "inputListeners": *, "onsubmit": *} source
Return:
{"classNames": *, "disabled": *, "placeholder": *, "value": *, "oninput": *, "inputListeners": *, "onsubmit": *} |
public oncreate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public oninit(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public oninput(value: String) source
Handle input into the textarea.
Params:
Name | Type | Attribute | Description |
value | String |
public onupdate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |