helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.

Home Page:https://bootstrap-flask.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question kwargs without value

PanderMusubi opened this issue · comments

A question for usage of kwargs, how to add a key without a value such as https://www.w3schools.com/tags/att_input_autofocus.asp Will add example usage to the example application when I have the answer.

Should this be done with wtforms.fields.Flags from https://wtforms.readthedocs.io/en/master/fields/ ?

Passing autofocus="autofocus" is the correct usage.

https://www.w3.org/TR/html5/infrastructure.html#boolean-attributes