https://kotlinlang.org logo
#ktor
Title
# ktor
b

bod

12/25/2018, 11:15 AM
Hello, World! And Merry Xmas 🙂 I'm trying the kotlinx.html integration now. Is there a way to add custom attributes to a tag? In my case, I need to add a
defer
attribute to a
script
tag.
o

orangy

12/25/2018, 11:18 AM
Yep,
attributes["data-toggle"] = "dropdown"
b

bod

12/25/2018, 11:18 AM
great, thanks!