Constructor
new Text(type, text)
Parameters:
Name | Type | Description |
---|---|---|
type |
string | one of HTML text element type |
text |
string | content in HTML format |
Classes
Methods
getText() → {string}
Gets text.
Returns:
text
- Type
- string
setText(text) → {Text}
Sets text.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | content in HTML format |
Returns:
this
- Type
- Text