diff --git a/src/components/slider/Slider.vue b/src/components/slider/Slider.vue
index 5818f9687..a64a0c039 100644
--- a/src/components/slider/Slider.vue
+++ b/src/components/slider/Slider.vue
@@ -13,21 +13,21 @@ import DomHandler from '../utils/DomHandler';
export default {
props: {
value: [Number,Array],
- disabled: Boolean,
- step: Number,
- range: Boolean,
- min: {
- type: Number,
- default: 0
- },
- max: {
- type: Number,
- default: 100
- },
- orientation: {
- type: String,
- default: 'horizontal'
- }
+ min: {
+ type: Number,
+ default: 0
+ },
+ max: {
+ type: Number,
+ default: 100
+ },
+ orientation: {
+ type: String,
+ default: 'horizontal'
+ },
+ step: Number,
+ range: Boolean,
+ disabled: Boolean
},
dragging: false,
handleIndex: null,
diff --git a/src/views/slider/SliderDemo.vue b/src/views/slider/SliderDemo.vue
index 13f48a211..20ab9df12 100644
--- a/src/views/slider/SliderDemo.vue
+++ b/src/views/slider/SliderDemo.vue
@@ -12,7 +12,7 @@
Two-way binding is defined using the standard v-model directive.
+Range slider provides two handles to define two values. Enable range property and bind an array to implement a range slider.
+ +Default layout of slider is horizontal, use orientation property for the alternative vertical mode.
+Step factor is 1 by default and can be customized with step option.
+Boundaries are specified with min and max attributes.
+Name | +Type | +Default | +Description | +
---|---|---|---|
value | +number | +0 | +Value of the component. | +
min | +number | +0 | +Mininum boundary value. | +
max | +number | +100 | +Maximum boundary value. | +
orientation | +string | +horizontal | +Orientation of the slider, valid values are horizontal and vertical. | +
step | +number | +1 | +Step factor to increment/decrement the value. | +
range | +boolean | +false | +When speficed, allows two boundary values to be picked. | +
disabled | +boolean | +false | +When present, it specifies that the component should be disabled. | +
Name | +Parameters | +Description | +
---|---|---|
change | +event: New value. | +Callback to invoke on value change via slide. | +
input | +event: New value. | +Callback to invoke on value change via slide. | +
slideEnd | +event.originalEvent: Slide event + event.value: New value. + |
+ Callback to invoke when slide ends. | +
Following is the list of structural style classes, for theming classes visit
Name | +Element | +
---|---|
p-slider | +Container element | +
p-slider-handle | +Handle element. | +
None.
+