PARAM_TO_STRING_LINK
This element connects a parameter to a string to convert parameter values into strings. This means than whenever the 'from' parameter changes, the 'to' string takes the value specified by the link properties and the value of the parameter.
Note that it's also possible to use param.text_value attribute to access param value as string.
Attributes brief detailed show all inherited
Examples
Here's a simple example of a param to string link:

- <!-- create param, string and a link -->
- <PARAM id="A" min="-2" max="2" default="0" />
- <STRING id="A_str" default="" />
- <PARAM_TO_STRING_LINK from="A" to="A_str" content="A value: {value}" value_format="+0.4" significant_digits="3" />
- <!-- layout with slider -->
- <COLUMN width="35">
- <TEXT value="A" />
- <LM_SLIDER_A param_id="A" />
- <PARAM_TEXT_CONTROL param_id="A" />
- </COLUMN>
- <!-- display string -->
- <TEXT string_id="A_str" width="150" />
We can often make it simpler, without creating a string and a link, just use param.text_value attribute.
- <TEXT string_id="A.text_value" />
Comments
Please, authorize to view and post comments.