Tag
fun <out E : Element> Tag(tagName: String, id: String? = null, baseClass: String? = null, job: Job, domNode: E = window.document.createElement(tagName).also { element ->
if (id != null) element.id = id
if (!baseClass.isNullOrBlank()) element.className = baseClass
}.unsafeCast<E>())
Content copied to clipboard
Parameters
tagName
name of the tag. Used to create the corresponding Element