Basic Forms
The Slider component, a type of range input, offers a consistent and customizable way for users to select values within a defined range. This intuitive component is ideal for adjusting settings such as volume, brightness, or for applying filters in various applications.
Note that this component requires the use of the third-party noUiSlider plugin.
Note that this component requires the use of our Advanced Range Slider plugin, else you can skip this message if you are already using Preline UI as a package.
Install nouislider
via npm
npm i nouislider
Include the JavaScript <script>
near the end of your </body>
tag:
Set the disabled
parameter to true
on an element to give it a grayed out appearance, remove pointer events, and prevent focusing.
By default, range inputs “snap” to integer values. To change this, you can specify a step
attribute with some integer value.
Using the update
method to pass a value as the text of an element.
Using the update
method to pass values as text to the min and max elements.
Using the update
method to pass values as text to the min and max elements.
Using the update
method to pass a value as the value of input.
Certain JavaScript Helpers in Preline UI make use of Lodash plugin. Don't forget to install it, if you haven't done so already: npm i lodash
Using the update
method to pass values as inputs value.
Certain JavaScript Helpers in Preline UI make use of Lodash plugin. Don't forget to install it, if you haven't done so already: npm i lodash
Using the update
method and returned values to update foreground chart width.
Note that this demo requires the use of the third-party Apexcharts plugin and Preline Charts helper.
Certain JavaScript Helpers in Preline UI make use of Lodash plugin. Don't forget to install it, if you haven't done so already: npm i lodash