Komponent 0.0.4 with minimize

This commit is contained in:
2017-07-22 13:31:15 +02:00
parent 1cf9f2598e
commit 584874a7ac
21 changed files with 117 additions and 49565 deletions

View File

@@ -2,8 +2,7 @@ package nl.astraeus.komp.todo
import kotlinx.html.*
import kotlinx.html.js.*
import nl.astraeus.komp.HtmlComponent
import nl.astraeus.komp.Komp
import nl.astraeus.komp.Komponent
import org.w3c.dom.HTMLElement
import org.w3c.dom.HTMLInputElement
import org.w3c.dom.events.Event
@@ -28,7 +27,7 @@ enum class Selection(val title: String) {
COMPLETED("Completed")
}
class TodoApp: HtmlComponent() {
class TodoApp: Komponent() {
val todoList: MutableList<Todo> = ArrayList()
var selected: Selection = Selection.ALL
@@ -212,5 +211,5 @@ class TodoApp: HtmlComponent() {
}
fun main(args: Array<String>) {
Komp.create(document.body!!, TodoApp(), true)
Komponent.create(document.body!!, TodoApp(), true)
}