diff --git a/build.gradle b/build.gradle
index 8d235bb..c0a5048 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,5 @@
group 'nl.astraeus'
-version '0.0.6-SNAPSHOT'
+version '0.0.7-SNAPSHOT'
apply plugin: 'kotlin2js'
apply plugin: 'idea'
@@ -20,11 +20,11 @@ repositories {
}
ext {
- kotlin_version = '1.1.4-2'
+ kotlin_version = '1.1.51'
}
buildscript {
- ext.kotlin_version = '1.1.4-2'
+ ext.kotlin_version = '1.1.51'
repositories {
maven {
url "http://nexus.astraeus.nl/nexus/content/groups/public"
diff --git a/komp.iml b/komp.iml
index 2ad513e..c0d4c87 100644
--- a/komp.iml
+++ b/komp.iml
@@ -22,7 +22,6 @@
-
@@ -46,8 +45,8 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/komp.ipr b/komp.ipr
index 2dccbec..77ad56b 100644
--- a/komp.ipr
+++ b/komp.ipr
@@ -49,6 +49,10 @@
+
+
+
+
@@ -130,13 +134,13 @@
-
+
-
+
-
+
@@ -148,22 +152,22 @@
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/src/main/kotlin/nl/astraeus/komp/Komponent.kt b/src/main/kotlin/nl/astraeus/komp/Komponent.kt
index 96d0d35..5a36030 100644
--- a/src/main/kotlin/nl/astraeus/komp/Komponent.kt
+++ b/src/main/kotlin/nl/astraeus/komp/Komponent.kt
@@ -34,6 +34,13 @@ fun TD.include(component: Komponent) {
Komponent.define(result, component)
}
+fun TABLE.include(component: Komponent) {
+ val result = component.render(this.consumer as TagConsumer)
+
+ component.element = result
+ Komponent.define(result, component)
+}
+
abstract class Komponent {
var element: Element? = null
var rendered = false