htag icon indicating copy to clipboard operation
htag copied to clipboard

id override

Open rraammiinn opened this issue 2 years ago • 2 comments

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

rraammiinn avatar Jul 01 '23 19:07 rraammiinn

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

manatlan avatar Jul 02 '23 06:07 manatlan

thanks .

rraammiinn avatar Jul 03 '23 09:07 rraammiinn