Constructor
new TextEditorRuntimeInstance(inst, properties)
Create class.
Parameters:
Name | Type | Description |
---|---|---|
inst | object | The instance object that gives to the parent's constructor. |
properties | Array.<(string|number|boolean)> | the initial parameters in array |
- Source
Extends
Members
_text :string
Plain text
Type:
- string
- Source
_textHTML :string
HTML text
Type:
- string
- Source
_placeholder :string
Placeholder text
Type:
- string
- Source
_tooltip :string
Tooltip text
Type:
- string
- Source
_isReadOnly :boolean
Read-only mode boolean
Type:
- boolean
- Source
_isVisible :boolean
Visibility mode boolean
Type:
- boolean
- Source
Methods
Release() → {object}
Handle release.
- Source
Returns:
save state in object
- Type:
- object
Draw(renderer)
Draw WebGL data. Not used.
Parameters:
Name | Type | Description |
---|---|---|
renderer | object | the instance object that gives to the parent's constructor |
- Source
SaveToJson() → {object}
Returns the instance save state in object.
- Source
Returns:
save state object
- Type:
- object
LoadFromJson(entries)
Load the instance state from save object.
Parameters:
Name | Type | Description |
---|---|---|
entries | object | save state to load |
- Source
GetDebuggerProperties() → {object}
Returns the instance state in object for debugging.
- Source
Returns:
debugger object
- Type:
- object
GetElementState() → {object}
Returns the instance state for DOM element.
- Source
Returns:
state object
- Type:
- object
_RemoveHTML(text) → {string}
Remove HTML tags from text.
Parameters:
Name | Type | Description |
---|---|---|
text | string | text to remove HTML tags |
- Source
Returns:
text without HTML tags
- Type:
- string
_OnTextChange(text, textHTML)
Called when user change text data.
Parameters:
Name | Type | Description |
---|---|---|
text | string | plain text from field |
textHTML | string | HTML text from field |
- Source
_SetText(text)
Set field's plain text.
Parameters:
Name | Type | Description |
---|---|---|
text | string | plain text to set |
- Source
_GetText() → {string}
Return field's HTML text.
- Source
Returns:
field's plain text
- Type:
- string
_SetTextHTML(textHTML)
Set field's HTML text.
Parameters:
Name | Type | Description |
---|---|---|
textHTML | string | HTML text to set |
- Source
_GetTextHTML() → {string}
Return field's HTML text.
- Source
Returns:
field's HTML text
- Type:
- string
_SetPlaceholder(placeholder)
Set field's placeholder.
Parameters:
Name | Type | Description |
---|---|---|
placeholder | string | placeholder to set |
- Source
_GetPlaceholder() → {string}
Return field's placeholder.
- Source
Returns:
field's placeholder
- Type:
- string
_SetTooltip(tooltip)
Set field's tooltip.
Parameters:
Name | Type | Description |
---|---|---|
tooltip | string | tooltip to set |
- Source
_GetTooltip() → {string}
Return field's tooltip.
- Source
Returns:
field's tooltip
- Type:
- string
_SetReadOnly(isReadOnly)
Set field's read-only mode.
Parameters:
Name | Type | Description |
---|---|---|
isReadOnly | boolean | read-only mode to set. True is on. |
- Source
_GetReadOnly() → {boolean}
Return field's read-only mode.
- Source
Returns:
read-only mode
- Type:
- boolean
_SetVisible(isVisible)
Set field's visibility.
Parameters:
Name | Type | Description |
---|---|---|
isVisible | boolean | visibility to set. True is on. |
- Source
_GetVisible() → {boolean}
Return field's visibility.
- Source
Returns:
visible mode
- Type:
- boolean
_GetCSSDependency() → {string}
Return CSS dependency in string between HTML style tags.
- Source
Returns:
CSS dependency
- Type:
- string