Class: Text

Text(type, text)

Text element.

Constructor

new Text(type, text)

Parameters:
Name Type Description
type string one of HTML text element type
text string content in HTML format
Source:

Classes

Text

Methods

getText() → {string}

Gets text.
Source:
Returns:
text
Type
string

setText(text) → {Text}

Sets text.
Parameters:
Name Type Description
text string content in HTML format
Source:
Returns:
this
Type
Text