A
A
asdevlog2019-01-12 23:53:53
Python
asdevlog, 2019-01-12 23:53:53

How to use a widget for a field in Flask?

Good afternoon.
Tell me how to make it so that some kind of widget can be screwed into the input field .. let's say there is a date input field, you
5c3a535e4664e387168880.jpeg
have to enter the date manually, but I would like some kind of drop-down calendar.
code is used to draw

{{ wtf.quick_form(form, method='post') }}

form field description
dl_date = DateTimeField('Дата', default=datetime.now())

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pcdesign, 2019-01-13
@pcdesign

And this is no longer done with the help of flask, but with the help of html + js, for example, for Bootsrap3, you can take this jquery library:
https://eonasdan.github.io/bootstrap-datetimepicker/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question