Config Kotlin 1.1.4
This commit is contained in:
@@ -2,11 +2,19 @@ package nl.astraeus.komp
|
||||
|
||||
import kotlinx.html.DIV
|
||||
import kotlinx.html.FORM
|
||||
import kotlinx.html.SPAN
|
||||
import kotlinx.html.TagConsumer
|
||||
import kotlinx.html.dom.create
|
||||
import org.w3c.dom.HTMLElement
|
||||
import kotlin.browser.document
|
||||
|
||||
fun SPAN.include(component: Komponent) {
|
||||
val result = component.render(this.consumer as TagConsumer<HTMLElement>)
|
||||
|
||||
component.element = result
|
||||
Komponent.define(result, component)
|
||||
}
|
||||
|
||||
fun DIV.include(component: Komponent) {
|
||||
val result = component.render(this.consumer as TagConsumer<HTMLElement>)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user