Closed BKFlister closed 4 weeks ago
I'm super stoked that you are actively trying out hypermedia and making issues.
for_
should already work and be autocompleted for Label
and Output
elements.
Label(for_="username")
and
I think all the attributes that conflicts with keywords has a trailing _
underscore. :) ie: class_
, but with class_
you can also use classes=[]
instead.
Thanks,
Label("Username", for_="username")
Results in a for
with a hyphen, for-
?
<label for-="username">Username:</label>
class_
result in class
without a hyphen.
Thanks for checking and Sorry... the Alias was not set up correctly.
Fixed, will be released together with another issue. :)
Fixed in 5.2.0
release :)
What is the correct/best method to add
for='...'
toLabel
?This will fail:
This is working:
I see that FastHTML/FastTag uses
fr
to handlefor
FastHTML/FastTag
https://www.fastht.ml
FastTag - Python library that mirrors fasttags from FastHTML/FastCore
https://github.com/adamritter/fasttag