Tag

fun <out E : Element> Tag(tagName: String, id: String? = null, baseClass: String? = null, job: Job, scope: Scope, domNode: E = window.document.createElement(tagName).also { element -> if (id != null) element.id = id if (!baseClass.isNullOrBlank()) element.className = baseClass }.unsafeCast<E>())

Parameters

tagName

name of the tag. Used to create the corresponding Element