Skip to content

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

getText() → {string}

Returns the text value of the widget.

Returns: string

getType() → {string}

Returns the type of the widget (RMP_StaticTextArea).

Returns:Type: string

setText(text)

Sets the text field of the widget.

Parameters:

Name Type Description
text string Text to set

setUrl(url)

Sets the URL field of the widget.

Parameters:

Name Type Description
url string URL to set