new ui/TextElement(text)
TextElement component class.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | Content text. |
- Source:
Extends
Members
ref :Object
Instance reference.
Type:
- Object
- Inherited From:
- Source:
Methods
get(name) → {*}
Returns value of a property.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Property name. |
- Inherited From:
- Source:
Returns:
Value of property.
- Type
- *
getDom() → {dom}
Returns dom object.
- Source:
Returns:
Element dom object.
- Type
- dom
inc(name, value) → {Object}
Increments given number property as given value.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Property name. |
value |
number | Value to increment. |
- Inherited From:
- Source:
Returns:
Instance reference.
- Type
- Object
isImplementedBy(Interface) → {boolean}
To check is this an instance implemented by given interface.
Parameters:
Name | Type | Description |
---|---|---|
Interface |
Interface | Interface |
- Inherited From:
- Source:
Returns:
If it is implemented by given interface.
- Type
- boolean
isInstanceOf(Class) → {boolean}
To check is this an instance of given class or a class extends given class.
Parameters:
Name | Type | Description |
---|---|---|
Class |
Class | Class |
- Inherited From:
- Source:
Returns:
If it is instance of given class.
- Type
- boolean
set(name, value) → {Object}
Sets a value to a property.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Property name. |
value |
* | Property value. |
- Inherited From:
- Source:
Returns:
Instance reference.
- Type
- Object
unset(name) → {Object}
Unsets / deletes a property.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Property name. |
- Inherited From:
- Source:
Returns:
Instance reference.
- Type
- Object