8 Commits

Author SHA1 Message Date
Djamil Legato
c45e9bd45e Fixed and enhanced Range field to be Lists compatible (fixes #2062) 2021-03-22 17:59:13 -07:00
Djamil Legato
4ff373a8b1 Fixed field type range not taking into account legitimate 0 values 2021-01-25 20:29:15 -08:00
Matias Griese
db6ff4699c Twig 2 compatibility fix 2018-08-31 08:45:11 +03:00
ricardo118
eb1c56e51c Added Classes support to range form field (#1120)
* Added Classes support to range form field

Simple change to add support to classes in blueprints added to range field in admin forms

* Minor bugfix for range slider

Without adding the validate here the only way to make the range slider work with a step, say 0.1 is to have `step: 0.1` both inside and outside the validate:

Example:

```
width:
    type: range
    step: 0.1
    validate:
        min: 0
        max: 1
        step: 0.1
```

* Adding classes support to list form field
2017-05-29 12:19:10 +02:00
Andy Miller
482c6d9ee8 Fixed step in range field https://github.com/getgrav/grav-plugin-form/issues/136 2017-03-25 11:48:30 -07:00
Andy Miller
306f4cce6b Reworked CSS styling 2017-03-18 13:53:28 -06:00
Ole Vik
b0dff58c45 Improve range-field (#1016)
* Improve range-field

Adds some JS (2.04 KB), SCSS (6.87 KB), and changed Twig to improve the functionality and styling of the range-field.

* Gulp build

* Fix range-field step

* Rangetouch to webpack, gulp rebuild

* Recompile from gulp

* Compliance for nested fields.

Replaces dots with underscores for id-attributes within the field.
2017-03-18 13:52:57 -06:00
Ole Vik
d02d110287 Add range-field (#995)
Uses input with type 'range' to create a HTML5 slider-element.
2017-02-23 18:37:40 +01:00