@extends('layouts.master') @section('title') @lang('translation.range-slider') @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Forms @endslot @slot('title')Range Slider @endslot @endcomponent
Use type="range"
attribute and form-range
class to create a deafult range.
Use disabled
attribute on an input to give it a grayed out appearance and remove pointer events.
Use min
and max
attribute with specified range input respectively.
By default, range inputs “snap” to integer values. To change this, you can specify a step value. In the example below, we double the number of steps by using step="0.5"
attribute.
<!-- Default Range -->
<input type="range" class="form-range" id="customRange1">
<!-- Disabled Range -->
<input type="range" class="form-range" id="disabledRange" disabled>
<!-- Min and Max -->
<input type="range" class="form-range" min="0" max="5" id="customRange2">
<!-- Steps -->
<input type="range" class="form-range" min="0" max="5" step="0.5" id="customRange3">
noUiSlider is a lightweight JavaScript range slider
Use data-slider-color="primary"
attribute to set primary color scheme.
Use data-slider-color="secondary"
attribute to set secondary color scheme.
Use data-slider-color="success"
attribute to set success color scheme.
Use data-slider-color="info"
attribute to set info color scheme.
Use data-slider-color="warning"
attribute to set warning color scheme.
Use data-slider-color="danger"
attribute to set danger color scheme.
Use data-slider-color="dark"
attribute to set dark color scheme.
Use data-slider-size="lg"
attribute to set large size rangeslider.
Use data-slider-size="md"
attribute to set medium size data-rangeslider.
Use data-slider-size="sm"
attribute to set small size rangeslider.
Use data-slider-style="line"
attribute to set line rangeslider.
Use data-slider-style="border"
attribute to set circle bordered rangeslider.
Use data-slider-style="square"
attribute to set square shape rangeslider.