Fields

RangeSlider

Basics

Inherits Range

* has the same capabilities.

The RangeSlider field is an extension of Range and additionally has the ability to change values using a slider.

Creation

use MoonShine\UI\Fields\RangeSlider;
 
RangeSlider::make('Age')
->fromTo('age_from', 'age_to')

Filter

When using the RangeSlider field to build a filter, the fromTo() method is not used, as filtering occurs by a single field in the database table.

use MoonShine\UI\Fields\RangeSlider;
 
RangeSlider::make('Age', 'age')