addon_before not working
Hi, I have been trying to use the addon_before, and is not showing anything. I have been trying to move things around and it does not work. I would like to add an Icon or a word using the
input-group input-group-text
I got that you made it so that is possible, but the 'addon_before' nor 'addon_after' seems to work.
Can you provide a reproducible code sample? It is hard to say what is going wrong otherwise. I can definitely say that both addon_before and addon_after are working for me.
Hi, sorry, it was long ago and found a work around.
Can you provide a reproducible code sample? It is hard to say what is going wrong otherwise. I can definitely say that both
addon_beforeandaddon_afterare working for me.
addon_before / addon_after do not work with input[type="color"] because the widget fails is_form_control_widget check
background_color = forms.CharField(
required=False,
widget=forms.TextInput(attrs={"type": "color"}),
label="Background color",
)
{% bootstrap_field form.background_color addon_after="<button>Reset</button>" %}