You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for an opportunity to add custom css classes to a form widget and extend its 'form-control' class by using the template tag. Unfortunately the parameter 'field_class' modifies a higher-level DIV.
The text was updated successfully, but these errors were encountered:
Just stumbleded around this issue trying to find an "easy" way to add custom css (and data-attributes) to a widget (in order to use bootstrap-select).
Kinda surprised that this is not supported.
However you can use django-widget-tweaks in order to customize the input widget before it is handled by django-bootsrap4. This might be a nice solution:
I am looking for an opportunity to add custom css classes to a form widget and extend its 'form-control' class by using the template tag. Unfortunately the parameter 'field_class' modifies a higher-level DIV.
The text was updated successfully, but these errors were encountered: