The Output Text control is a text option that displays read-only text.
The Output Text can be bound to a String variable.
This control is most commonly used to display static text, such as instructions or messages to the end user.
Like almost all SPARK controls, you can trigger events that are fired when the user interacts with the control (see the Event and Methods sections below and the Event Handling article for more information).
Formula
Text Formula A formula/expression to be used as the value of the output text. A very simple example of this would be to set the Output Text here using quotes, without needing to set a bound variable.
Appearance
Width Value in px, %, em For example: 50px, 20%, 0.4em, if no unit is specified px is assumed
Color Style Default, Muted, Light-gray, Primary, Info, Success, Warning, Danger
Size Style Default, Super-Large, Extra-Large, Larger, Large, Small, Smaller
Text Weight Default, Slim, Normal, Semi-Bold, Bold
Label Placement Top, Left
Example
In this example, the output text is bound to a string whose value is "Our focus is aligning your process and decision outcomes with your corporate goals and strategies."
These are the configuration option settings...
This is the result ...
Events
With the Output Text control, there is 1 type of event handler:
- On Load When the page loads
You can use JavaScript logic to affect the effects of the control, depending on the event. More information on using these controls can be found in the Event Handling article.
Methods
For detailed information on the available methods for this control, access the JS Doc file.
- Author: Courtney Silva
- Date Created: June 8, 2015
- Date Modified: August 31, 2015
Comments