Extends
Range
* has the same features
# Make
The RangeSlider field is an extension of Range and additionally has the ability to change values using a slider.
use MoonShine\Fields\RangeSlider; //... public function fields(): array{ return [ RangeSlider::make('Age') ->fromTo('age_from', 'age_to') ];} //...
# Filter
While using the RangeSlider field to construct a filter, method fromTo()
is not used,
because filtering occurs on one field in the database table.
use MoonShine\Fields\RangeSlider; //... public function filters(): array{ return [ RangeSlider::make('Age', 'age') ];} //...