Module

RMP_StaticTextArea


new RMP_StaticTextArea(conf)

This constructor allows you to create a static text widget that can be inserted dynamically in your web interface.

Parameters:
Name Type Description
conf Object JSON structure which contains the configuration of the static text
Example
var conf ={"id":"id_text","text":"My Text"}
var id_text = new RMP_StaticTextArea(conf);
id_widget.insertBefore(id_text ); 

Methods

# inner getText() → {string}

Returns the text value of the widget.
string

# inner getType() → {string}

Returns the type of the widget (RMP_StaticTextArea).
string

# inner setText(text)

Sets the text field of the widget.
Parameters:
Name Type Description
text string Text to set

# inner setUrl(url)

Sets the URL field of the widget.
Parameters:
Name Type Description
url string URL to set