jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
837 stars 148 forks source link

How to use bootstrap style to `datalist`?! #188

Open nurzhannogerbek opened 7 years ago

nurzhannogerbek commented 7 years ago

Hello! How to use bootstrap style to datalist?! As I understand its hard to use css style to datalist. So is it possible to use ul, li elements instead of datalist?

forms.py:

class SymbolForm(forms.ModelForm):
    symbol = floppyforms.CharField(widget=floppyforms.TextInput(
        datalist=['A', 'B', 'C'],
        attrs={'autocomplete': 'off)}
     ))

    class Meta:
        model = Symbol
        fields = ('symbol',)