Slider
The slider can be used to display and edit numerical values.
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.
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.
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.
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. |
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.
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. |