Slider
The slider can be used to display and edit numerical values.
![Slider 1:](Images/png/10718606347__Web.png)
Use
Can be dragged to any page where numerical values are to be edited.
Features
The value can be set by drag and drop or by clicking on the slider. You can also click on the display that shows the current value and then enter the desired value.
![Slider 2:](Images/png/10718608267__Web.png)
It can be set whether the min. and max. values or the current value are displayed.
Different areas can be colored for the slider. Here you have the possibility to set color gradients or exact color areas.
![Slider 3:](Images/png/10718610187__Web.png)
If the feedback concept is used, the value of the feedback is displayed with a slight shadow. Thus, for example, both values can be visualized at the same time for an object that has a target value and an actual value.
![Slider 4:](Images/png/10718612107__Web.png)
Attributes
The control inherits from TextControl and thus has the same attributes. In addition, there are the following attributes.
BA
BaObject
tchmi:framework#/definitions/Symbol
To use the generic functionalities of TcHmiBa. It links a single object or a complete view (including children) to the control.
![]() | You can find more detailed information about the generic possibilities of TcHmiBa under Generic HMI. |
![Slider 6:](Images/png/12117788939__Web.png)
![Slider 7:](Images/png/9007211372531851__Web.png)
![Slider 8:](Images/png/9007211373557771__Web.png)
Common
ShowValue
tchmi:general#/definitions/Boolean
Determines whether the current value is displayed.
ShowScale
tchmi:general#/definitions/Boolean
Orientation
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Orientation
Determines the orientation of the slider (horizontal or vertical).
SwitchMinMax
tchmi:general#/definitions/Boolean
If active, the positions of MinValue and MaxValue are swapped.
Ranges
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.Slider.SliderRanges
Specifies different color areas or color gradients to be displayed in the slider.
![Slider 9:](Images/png/10718614027__Web.png)
![Slider 10:](Images/png/10718615947__Web.png)
![Slider 11:](Images/png/10718617867__Web.png)
KnobAppearance
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.Slider.KnobAppearance
Determines the display of the slider knob.
BaData
BaInterface
tchmi:framework#/definitions/Symbol
Allows linking a symbol that satisfies the BaInterface of the control. With this symbol all necessary data points of the control can be linked with only one binding.
BaInterfaceSymbolNames
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.Common.Slider.BaInterfaceSymbolNames
Allows editing the BaInterfaceSymbolNames.
![]() | The default values of BaInterfaceSymbolNames, as well as the expected data types can be found in the tooltip of the dialog for setting BaInterfaceSymbolNames: |
![]() | Here is described how the BaInterfaceSymbolNames are overwritten by all controls of a type. |
Value
tchmi:general#/definitions/Number
The current value of the slider.
ValueFeedback
tchmi:general#/definitions/Number
The feedback for the value of the slider.
Number
MinValue
tchmi:general#/definitions/Number
The minimum value of the slider.
MaxValue
tchmi:general#/definitions/Number
The maximum value of the slider.
Step
tchmi:general#/definitions/Number
Determines the accuracy with which the value can be set with the slider (e.g. 0.01).
Events
Event | Description |
---|---|
onUserInteractionFinished | The event is triggered when the value change has been completed by the user. This happens with drag and drop, when the user releases the slider again or after clicking on an area of the slider. |
OnValueChanged | The event is triggered every time the value of the slider changes, for example, when the slider is moved. |