- Updated bootstrap 3 and 4 buttons to accept the following options :size, :block, :color. These will ensure the correct classes are applied to the element (without causing conflicts with defaults).
- [BREAKING] Swap attribute handling to be a whitelist rather than a blacklist
- Improve Escape html - use for option values and optgroup labels
- Multi Select elements now mark options as selected
- Select elements prompt and include_blank options now operate the same way as simple form
- added procces_option to the Element API
- Checkboxes now support
checked_value
option as an alias ofvalue
. Same as SimpleForm. - you can now set your own builders as the default in the helper
- Escape html (controls, labels errors hints) (fixes #29)
- setting a default builder in the helper now actually works!
- Select elements appends array signifier (
[]
) to element name attribute whenmultiple: true
(fixes #40) - options should always override default values, even when nil. (fixes #39)
- element#options now includes both elements and html attributes
- elements#attributes only includes html attributes and can't be mutated. Change element#options instead
- elements#normalize_options no longer tries to use the default value if an option is present
- added a module for html_escape
- renamed WrappedControl module to Wrapped and stopped including control
- changes the order of default_hash to better respect inheritance ordering
- provide an element module for easily escaping html values
- Correctly require declarative heritage for Formular::Element::Module - (@fran-worley)
- Update readme & include example gemgem links - (@fran-worley)
First public release