Follow

Link

The Link control creates a link to an outside webpage or can be set to a boundary event within a service.

The Link control comes with many easy to configure formula, behavior, and appearance options

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).

The Link control can be bound to a Boolean variable.  If bound, then when clicked that variable will be set to true.  The Link control functions similarly to a Button control.

You can link to an outside link; however, it can also be used within a Coach or Coach View (for instance, a link within a table).

Formula

Text Formula Formula/expression to be auto-calculated (for the link text)

Behavior

Tab Index Form control tabbing sequence index. Tab indices start at 1, and may be set sparsely.

Link Text Text to set for the link

Prevent Multiple Clicks Prevents the user from clicking the link more than once. Only effective for a Boundary Event link type.

Link Type Set to Boundary Event to emit a boundary event within the service, URL to go to an outside page

Link URL Only effective if Link Type is URL

Open In Same Window Open URL in same window (only if link type is URL)

Appearance

Width Width in px, %, em; for example: 50px, 20%, 0.4em. If no unit is specified, px is assumed

Text Alignment Set the alignment of the output text relative to the width of the control; Left, Center, Right

Color Style

Size Style Default, Super-Large, Extra-Large, Larger, Large, Small, Smaller

Text Weight Default, Slim, Normal, Semi-bold, Bold

Label Placement Top, Left

Example

These are the configuration option settings...

This is the result...

Events

With the Link control, there are 3 types of event handlers:

  • On Load When the page loads
  • On Click When the Link is clicked
  • On Boundary Event When there is a boundary event

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 18, 2015
  • Date Modified: August 31, 2015
Was this article helpful?
0 out of 0 found this helpful

Comments