Installation
templui add sliderLoad the script once in your layout:
<head>
@slider.Script()
</head>Examples
Value
Steps
Disabled
External Value
External value (linked to the slider):
API Reference
Slider
Main slider container component.
| Name | Type | Default |
|---|---|---|
Unique identifier for the slider component | | |
Additional CSS classes to apply to the slider container | | |
Additional HTML attributes to apply to the slider container | | |
Input
The actual range input element.
| Name | Type | Default |
|---|---|---|
Unique identifier for the input element | | |
Additional CSS classes to apply to the input | | |
Additional HTML attributes to apply to the input | | |
Name attribute for the input field | | |
Minimum value for the slider | | |
Maximum value for the slider | | |
Step increment for slider values | | |
Current value of the slider | | |
Whether the slider is disabled | | |
Value
Display element for the current slider value.
| Name | Type | Default |
|---|---|---|
Unique identifier for the value display element | | |
Additional CSS classes to apply to the value display | | |
Additional HTML attributes to apply to the value display | | |
ID of the slider input this value display is connected to | | |