Multislider"

From Documentation
(10 intermediate revisions by 2 users not shown)
Line 9: Line 9:
  
 
= Employment/Purpose =
 
= Employment/Purpose =
A multislider component represents a slider with a few range values. It includes sliderbuttons, which can be used to let user select a start value and an end value. A multislider accepts a range of value starting from 0 to certain maximum value. The default maximum value of multislider scale is 100. You can change the maximum allowed value by setting the max property. Notice that the value of max property is always larger than the value of min property.
+
A multislider component represents a slider with multiple ranges. It includes sliderbuttons, which can be used to let user select a start value and an end value. A multislider accepts a range of values starting from 0 to a maximum value you defined. The default maximum value is 100. You can change the maximum value by setting the max property. Notice that the value of max property is always larger than the value of min property.
  
 
= Example =
 
= Example =
Line 31: Line 31:
  
 
== Disabled ==
 
== Disabled ==
If the multislider is disabled, then users can not drag the slider buttons.
+
If the multislider is disabled, users can not drag the slider buttons.
  
 
== Orient ==
 
== Orient ==
Sets the orient either "horizontal" or "vertical" to display multislider.
+
Sets the orientation to either "horizontal" or "vertical" to display the multislider.
  
 
== Marks ==
 
== Marks ==
 
Sets the marks information for displaying value marks.
 
Sets the marks information for displaying value marks.
 +
 
It supports Map<Integer, String>. The key is represented as the value of multislider, and the value is represented as the displayed mark label.
 
It supports Map<Integer, String>. The key is represented as the value of multislider, and the value is represented as the displayed mark label.
 
It means that each value mark could be displayed in different text.
 
It means that each value mark could be displayed in different text.
  
 
== MarkScale ==
 
== MarkScale ==
Sets the marks information for displaying value marks.
+
Sets the marks information for displaying value marks.(Default: "20")
(Default: "20")
+
 
The value marks would be displayed every 20 start from the minimum value. (if min is 0, then display "0 20 40 ...")
+
By default the value marks are displayed every 20 starting from the minimum value. (if min is 0, then it displays "0 20 40 60 ...")
  
 
== Max ==
 
== Max ==
Multislider supports maximal position, which can be changed by the max property as follows.
+
Defines the max value of the multislider. It can be changed by the max property.
 
(Default: 100)
 
(Default: 100)
  
 
== Min ==
 
== Min ==
Multislider supports minimal position, which can be changed by the min property as follows.
+
Defines the minimal value of the multislider. It can be changed by the min property.
 
(Default: 0)
 
(Default: 0)
  
 
== Step ==
 
== Step ==
By default, the multislider will scroll to the position continuously when a user drags it. If you prefer to scroll a discrete fixed amount on each step, you can set the amount of value of the step property.
+
By default, the multislider will scroll to the position continuously when a user drags it. If you prefer to scroll a discrete fixed amount at each step, you can set the Step property.
  
 
== TooltipVisible ==
 
== TooltipVisible ==
The tooltip displays the value of slider buttons in multislider.
+
The tooltip displays the value of slider buttons in the multislider.
If the tooltipvisible is true, the tooltips of the slider buttons would be always visible.
+
If tooltipvisible is true, the tooltips of the slider buttons will always be displayed.
 
(Default: false)
 
(Default: false)
  

Revision as of 03:10, 29 November 2019

Multislider

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png
since 9.0.0

Employment/Purpose

A multislider component represents a slider with multiple ranges. It includes sliderbuttons, which can be used to let user select a start value and an end value. A multislider accepts a range of values starting from 0 to a maximum value you defined. The default maximum value is 100. You can change the maximum value by setting the max property. Notice that the value of max property is always larger than the value of min property.

Example

ZKComRef Multislider.png

<zk>
  <multislider>
    <sliderbuttons startValue="10" endValue="70"/>
    <sliderbuttons startValue="20" endValue="50"/>
    <sliderbuttons startValue="30" endValue="40"/>
  </multislider>
  <multislider min="5" max="120" orient="vertical">
    <sliderbuttons startValue="5" endValue="100"/>
    <sliderbuttons startValue="20" endValue="50"/>
  </multislider>
</zk>

Properties

Disabled

If the multislider is disabled, users can not drag the slider buttons.

Orient

Sets the orientation to either "horizontal" or "vertical" to display the multislider.

Marks

Sets the marks information for displaying value marks.

It supports Map<Integer, String>. The key is represented as the value of multislider, and the value is represented as the displayed mark label. It means that each value mark could be displayed in different text.

MarkScale

Sets the marks information for displaying value marks.(Default: "20")

By default the value marks are displayed every 20 starting from the minimum value. (if min is 0, then it displays "0 20 40 60 ...")

Max

Defines the max value of the multislider. It can be changed by the max property. (Default: 100)

Min

Defines the minimal value of the multislider. It can be changed by the min property. (Default: 0)

Step

By default, the multislider will scroll to the position continuously when a user drags it. If you prefer to scroll a discrete fixed amount at each step, you can set the Step property.

TooltipVisible

The tooltip displays the value of slider buttons in the multislider. If tooltipvisible is true, the tooltips of the slider buttons will always be displayed. (Default: false)

Supported Events

Supported Children

* Sliderbuttons

Use Cases

Version Description Example Location
     

Version History

Last Update : 2019/11/29


Version Date Content
9.0.0 November, 2019 Multislider was introduced.



Last Update : 2019/11/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.