About Slider Components

You can use a Slider component to add a range slider, which a user can use to specify a numeric value within a predefined range.

You can display a Slider component as only a slider, or only a spin box, or a slider with a spin box in a simulation template.

This page discusses:

See Also
Adding Slider Components
About Simulation Attributes
About Rules
Creating Rules
Viewing Rules
About Notifications
Configuring Notification Rules

Overview

The following figure shows an example of the properties of a Slider component:

The following figure shows the resulting output in the customized simulation template:

Properties

The Slider component has the following properties:

Property Description Type Supports Rule Creation
Name ID of the component (read-only) String
Value Object to bind to the Slider component Integer or Real
Label Text to display with the Slider component String
Custom color Color in which to display the label String
Display Mode Method for displaying the Slider component in the template Enum
Step Increment Amount by which the value of Slider component increases or decreases when the user moves the slider or clicks the arrows in the spin box Integer or Real
Minimum Lower end of the range of the Slider component Integer or Real
Maximum Upper end of the range of the Slider component Integer or Real
Read Only Whether the user can modify the value of the Slider component Boolean
Hidden Whether to hide or show the component Boolean
Border Color Specifies the appearance and color of a border around the component String
Notification Custom notifications to display for the component.
Note: This property can be controlled only by a rule.
String
Tooltip Additional information that appears when the user hovers over the component's help icon String

The default range of the Slider component is 0–100. However, if the value of the process object associated with the Slider component is out of that range, the app changes the minimum or maximum value of the Slider component, as necessary, to the value of the process object so that the value is within the Slider component's range.

If you define a range for the Slider component, the range must not exceed the range of the associated parameter or attribute. For example, the Minimum of the Slider component must not be less than the lower bound or the value of the associated parameter or attribute.