mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
v5: Add disabled examples for .form-control, .form-select, and .form-range (#31686)
* Add disabled state example to the .form-control page * Document disabled attribute on select too * Add disabled example for file input Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -15,6 +15,15 @@ Create custom `<input type="range">` controls with `.form-range`. The track (the
|
||||
<input type="range" class="form-range" id="customRange1">
|
||||
{{< /example >}}
|
||||
|
||||
## Disabled
|
||||
|
||||
Add the `disabled` boolean attribute on an input to give it a grayed out appearance and remove pointer events.
|
||||
|
||||
{{< example >}}
|
||||
<label for="disabledRange" class="form-label">Disabled range</label>
|
||||
<input type="range" class="form-range" id="disabledRange" disabled>
|
||||
{{< /example >}}
|
||||
|
||||
## Min and max
|
||||
|
||||
Range inputs have implicit values for `min` and `max`—`0` and `100`, respectively. You may specify new values for those using the `min` and `max` attributes.
|
||||
|
||||
Reference in New Issue
Block a user