bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

Ability to globally enable custom form fields #541

Open dleavitt opened 4 years ago

dleavitt commented 4 years ago

The basic custom form fields are usually something you want to apply either globally or not at all, so it would be great to have the ability to globally default to custom (maybe per-field type) rather than having to pass in the argument to each input.

This may be easily doable now by redefining some methods in an initializer, if anyone has done so it would be great to add docs on how to do it.

If not easily doable now, would be a nice feature to add!

lcreid commented 4 years ago

Thanks for the suggestion. A way to globally set options makes a lot of sense. I'm open to suggestions or pull requests for this. If you decide to work on a pull request, please assign the bug to yourself (find the link in the upper-right area of this page). Otherwise I will look into this when I find some time.

lcreid commented 4 years ago

It looks like Bootstrap 5 does away with the concept of custom form fields, at least at the alpha 1 stage. I'm open to input on whether this feature will still be needed.