manatlan / htag

Python3 GUI toolkit for building "beautiful" applications for mobile, web, and desktop from a single codebase
https://manatlan.github.io/htag/
MIT License
102 stars 4 forks source link

id override #11

Open rraammiinn opened 1 year ago

rraammiinn commented 1 year ago

isn't there any way for overriding id of elements ?

manatlan commented 1 year ago

no, it's not possible ... (as all htag mechanism is based on ids)

but ... it's possible to create something like that;

self <= Tag.div(   "<span id='myid'>hello</span>" )

and use the id later (in js side only), but it's not a good practice. Cause it could complexify your app. But for some special needs, it can be useful

rraammiinn commented 1 year ago

thanks .