Range

This is a very elegant field - which allows you to set a maximum and minimum value.

The field is used in form to send a range of values.

range preview

Example


use agoalofalife\Orchid\Fields\Range; // title - title before the field // min - minimum value // max - maximal value // hasGrid - show marking along the line // skin - style Range::make('age') ->title('Age') ->type('double') // double, single ->min(18) ->max(50) ->skin('flat') // flat, big, modern, round, sharp, square ->hasGrid(true);

Flat skin

flat

Big skin

big

Modern skin

modern

Round skin

round

Sharp skin

sharp

Square skin

square

Field Source