class_="slider"

Using <widget class_="slider"> creates a sliding value widget.

Description

The field manifestation of <widget> accepts text. Optionally, it also offers autocomplete functionality using query data.

Syntax

<dynamic slidevar="">
    <widget class_="slider" orientation_="horizontal|vertical" 
     label_="[FIELD_LABEL]" value_="@slidevar"
     min_="[MINIMUM_VALUE]" max_="[MAXIMUM_VALUE]"/>
</dynamic>

Attributes

The attributes in this list are specific to widgets with class_="slider".

label_
Accepts text that is used as a label for the widget.
labelpos_
Accepts a string that specifies the position of the label for the widget.

Valid values are:

  • left
  • right
  • top
  • bottom

The default is left.

labelwidth_
Accepts an integer that specifies the width of the label for the widget.

If the length of the string specified by the label_ attribute is greater than the value specified for labelwidth_, the text will wrap over multiple lines.

If the labelwidth_ attribute is not specified, the default width is the length of the string specified by the label_ attribute.

orientation_
Specifies the orientation of the sliding selector.

Valid options are:

  • horizontal
  • vertical

If orientation_ is omitted, then horizontal is provided as the default value.

sliderheight_
Accepts an integer value that specifies the height of the slider widget when the orientation_ is set to vertical.
sliderwidth_
Accepts an integer value that specifies the width of the slider widget when the orientation_ is set to horizontal.
slidercolor_
Specifies the background color of the slider.

The color can be specified as any valid HTML color name, an RGB value, or a hex value.

(Available as of version 11.10)

value_
The value selected in the slider widget is stored in the dynamic variable specified by the value_ attribute.

The variable must be declared in the opening <dynamic> tag of the QuickApp (e.g., <dynamic var_name="">).

Note: If the tovalue_ attribute is specified, the value of the first handle in the slider widget is stored in the variable specified by the value_ attribute and the value of the second is stored in the variable specified by the tovalue_ attribute.
tovalue_
When the tovalue_ attribute is specified, the slider widget displays two handles. The value of the second handle in the slider widget is stored in the variable specified by the tovalue_ attribute.

The variable must be declared in the opening <dynamic> tag of the QuickApp (e.g., <dynamic var_name="">).

min_
Accepts an integer value that defines the minimum value that can be selected with the slider widget.
max_
Accepts an integer value that defines the maximum value that can be selected with the slider widget.
step_
Accepts a decimal value that denotes the interval between each discrete value on the slider.
Note: If both step_ and steps_ are specified, steps_ takes precedence.
steps_
Accepts a decimal value that denotes the number of intervals on the slider.
Note: If both step_ and steps_ are specified, steps_ takes precedence.

Example for class_="slider"

This example creates a field that accepts a string. The label indicates that a name should be entered. The result is shown below the code.

<dynamic slidevar="1">
  <widget class_="slider" min_="1" max_="10" step_="2" value_="@slidevar"/>
</dynamic>