Multislider"
(Created page with "{{ZKComponentReferencePageHeader}} = Multislider = *Demonstration: *Java API: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Multislider.html Multislider] *JavaS...") |
|||
Line 2: | Line 2: | ||
= Multislider = | = Multislider = | ||
− | |||
*Demonstration: | *Demonstration: | ||
*Java API: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Multislider.html Multislider] | *Java API: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Multislider.html Multislider] | ||
*JavaScript API: [http://www.zkoss.org/javadoc/latest/jsdoc/zkmax/slider/Multislider.html Multislider] | *JavaScript API: [http://www.zkoss.org/javadoc/latest/jsdoc/zkmax/slider/Multislider.html Multislider] | ||
− | + | {{ZK EE}} | |
+ | since 9.0.0 | ||
= Employment/Purpose = | = Employment/Purpose = | ||
− | + | A multislider component represents a slider with a few range value. It includes sliderbuttons, which can be used to let user select a start value and 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 could change the maximum allowed value by the max property. Notice that the value of max property is always larger than the value of min property. | |
− | |||
= Example = | = Example = | ||
Line 16: | Line 15: | ||
<source lang="xml" > | <source lang="xml" > | ||
<zk xmlns:ca="client/attribute"> | <zk xmlns:ca="client/attribute"> | ||
− | < | + | <multislider> |
− | < | + | <sliderbuttons startValue="10" endValue="70"/> |
− | + | <sliderbuttons startValue="20" endValue="50"/> | |
− | + | <sliderbuttons startValue="30" endValue="40"/> | |
− | + | </multislider> | |
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</zk> | </zk> | ||
</source> | </source> | ||
− | + | = Properties = | |
− | + | ||
+ | == Disabled == | ||
+ | If the multislider is disabled, then users can not drag the slider buttons. | ||
− | + | == Orient == | |
− | + | Sets the orient either "horizontal" or "vertical" to display multislider. | |
− | |||
− | |||
− | |||
− | |||
− | + | == Marks == | |
− | + | Sets the marks information for displaying value marks. | |
+ | (Default: "20") | ||
+ | If there is only a number value, for example, 20. | ||
+ | The value marks would be displayed every 20 start from the minimum value. (if min is 0, then display "0 20 40 ...") | ||
+ | Another options for the marks can be specified as follows: | ||
+ | <source lang="xml" ><multislider marks="10:10%, 20:20%, 50:50%, 80:80%" /></source> | ||
+ | It means that each value mark could be displayed in different text. | ||
− | + | == Max == | |
+ | Multislider supports maximal position, which can be changed by the max property as follows. | ||
+ | (Default: 100) | ||
− | = | + | == Min == |
+ | Multislider supports minimal position, which can be changed by the min property as follows. | ||
+ | (Default: 0) | ||
− | == | + | == StartValue, EndValue == |
− | + | Represent the range value of Multislider. | |
+ | (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 on each step, you can set the amount of value of the step property. | |
− | = | + | == TooltipVisible == |
+ | The tooltip displays the value of slider buttons in multislider. | ||
+ | If the tooltipvisible is true, the tooltips of the slider buttons would be always visible. | ||
+ | (Default: false) | ||
− | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/ | + | =Supported Events= |
+ | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]] | ||
− | = Supported Children = | + | =Supported Children= |
− | *[[ZK_Component_Reference/ | + | *[[ZK_Component_Reference/Input/Sliderbuttons | Sliderbuttons]] |
= Use Cases = | = Use Cases = | ||
Line 81: | Line 85: | ||
| 9.0.0 | | 9.0.0 | ||
| November, 2019 | | November, 2019 | ||
− | | [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/ | + | | [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Multislider.html Multislider] was introduced. |
|} | |} | ||
{{ZKComponentReferencePageFooter}} | {{ZKComponentReferencePageFooter}} |
Revision as of 04:03, 13 November 2019
Multislider
- Demonstration:
- Java API: Multislider
- JavaScript API: Multislider
- Available for ZK:
since 9.0.0
Employment/Purpose
A multislider component represents a slider with a few range value. It includes sliderbuttons, which can be used to let user select a start value and 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 could change the maximum allowed value by the max property. Notice that the value of max property is always larger than the value of min property.
Example
<zk xmlns:ca="client/attribute">
<multislider>
<sliderbuttons startValue="10" endValue="70"/>
<sliderbuttons startValue="20" endValue="50"/>
<sliderbuttons startValue="30" endValue="40"/>
</multislider>
</zk>
Properties
Disabled
If the multislider is disabled, then users can not drag the slider buttons.
Orient
Sets the orient either "horizontal" or "vertical" to display multislider.
Marks
Sets the marks information for displaying value marks. (Default: "20") If there is only a number value, for example, 20. The value marks would be displayed every 20 start from the minimum value. (if min is 0, then display "0 20 40 ...") Another options for the marks can be specified as follows:
<multislider marks="10:10%, 20:20%, 50:50%, 80:80%" />
It means that each value mark could be displayed in different text.
Max
Multislider supports maximal position, which can be changed by the max property as follows. (Default: 100)
Min
Multislider supports minimal position, which can be changed by the min property as follows. (Default: 0)
StartValue, EndValue
Represent the range value of Multislider. (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 on each step, you can set the amount of value of the step property.
TooltipVisible
The tooltip displays the value of slider buttons in multislider. If the tooltipvisible is true, the tooltips of the slider buttons would be always visible. (Default: false)
Supported Events
- Inherited Supported Events: XulElement
Supported Children
* Sliderbuttons
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
9.0.0 | November, 2019 | Multislider was introduced. |