Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 7.x/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -701,14 +701,15 @@ Input preview:
<a name="range"></a>
### range

Shows an HTML5 range element, allowing the user to drag a cursor left-right, to pick a number from a defined range.
Shows an HTML5 range element, allowing the user to drag a cursor left-right, to pick a number from a defined range. The current value is displayed in a "bubble" that follows the slider thumb, and the min/max values are shown on either side of the slider.

```php
CRUD::field([ // Range
'name' => 'range',
'label' => 'Range',
'type' => 'range',
//optional
// optional
'show_min_max' => true, // default true; set to false to hide the min/max labels on either side of the slider
'attributes' => [
'min' => 0,
'max' => 10,
Expand Down