-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap4 custom form widgets support #116
Comments
I also want to use the custom control inputs as widgets. I especially like the Switch of bootstrap 4.2. |
Support for the custom file input would also be nice. |
Yes, this would be very cool indeed. The Django way would be to use the default widget unless another widget is specified. If a form has a Widget that is recognizable as a Bootstrap4Widget, the FieldRenderer could delegate the HTML rendering to the widget? |
@dyve Right now in my project i'm using custom field renderer with this mixin:
And i can update FieldRenderer with same logic (using beatyfulsoup for list_to_class), and add option like "use_custom_select/use_custom_radio". (or maybe select_css_class/radio_css_class) if it makes more sense. What do you think? |
Here is how it looks like. |
I'd like custom-select support too. I'd want the API to look like:
|
Hello there, I'd really like to see this implemented in Here's a list:
Checkboxes, Radios and Select should be fairly easy but I suggest implementing the rest through their own PR. I like the idea to be able to set this globally, but should we handle an option like What's the next step after last-partizan@8342120? Would it be enough for a PR? |
|
Hello, i'm using custom-radio and custom-checkbox in my project, and to support it i had to override FieldRenderer.
https://getbootstrap.com/docs/4.1/components/forms/#checkboxes
Now something changed and i need to adjust my code, maybe it's better to implement support for those widgets in project?
If it would be useful, i could implement it and make pull-request.
The text was updated successfully, but these errors were encountered: