Follow

Badge

The Badge control displays textual or numerical content and can be programmatically set to be clickable.

The Badge control is similar to an Icon control and can be programmatically set to be clickable using the On Click event.

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

This control is most commonly used when bringing the users attention to a specific area on a Coach, to display useful or helpful information, or used as a clickable button.

Formula

Text Formula Expression for the control; can be used to set the label for the Badge control

Appearance


Color Style

Shape Style

Example

These are the configuration option settings...

This is the result...

Events

With the Badge control, there are 2 types of event handlers:

  • On Load When the page loads
  • On Click When the Badge is clicked

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 5, 2015
  • Date Modified: July 27, 2015
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments