Slider Element
An element used to render slider with vue-slider-component
#Examples
<script>
export default {
mixins: [Laraform],
data: () => ({
schema: {
slider: {
type: 'slider'
}
}
})
}
</script>
#Options
Name | Type | Description |
---|---|---|
min | number |
Minimum value of the slider. |
max | number |
Maximum value of the slider. |
disabled | boolean |
Whether the field is disabled. |
default | num|arr |
Value of element when the form is initially loaded or reseted. If an array is given the slider will have multiple handles. |
options | object |
Additional options for slider. |
#Properties
Name | Type | Default | Description |
---|---|---|---|
disabled | boolean |
false |
Whether the field is disabled. |
min | number |
0 |
Minimum value of the slider. |
max | number |
100 |
Maximum value of the slider. |
defaultValue | num|arr |
null |
Value of element when the form is initially loaded or reseted. If an array is given the slider will have multiple handles. |
options | object |
{} |
Additional options for slider. |
#Methods
# .disable()
Disabled the field.
# .enable()
Enables the field.