aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/helpers
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-04 21:49:23 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-04 21:49:23 +0100
commit70d2f14d4a34f841a3161482eec5d355cbd755f6 (patch)
tree847cb461a2f261f6f2b3a6b0ebbc6918f1da0467 /src/main/kotlin/pl/treksoft/kvision/helpers
parent9665fe692681bc958e55d00cc0d0b238b7aee694 (diff)
downloadkvision-70d2f14d4a34f841a3161482eec5d355cbd755f6.tar.gz
kvision-70d2f14d4a34f841a3161482eec5d355cbd755f6.tar.bz2
kvision-70d2f14d4a34f841a3161482eec5d355cbd755f6.zip
Refactoring packages layout
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/helpers')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/helpers/CloseIcon.kt25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/helpers/CloseIcon.kt b/src/main/kotlin/pl/treksoft/kvision/helpers/CloseIcon.kt
deleted file mode 100644
index b5f1a642..00000000
--- a/src/main/kotlin/pl/treksoft/kvision/helpers/CloseIcon.kt
+++ /dev/null
@@ -1,25 +0,0 @@
-package pl.treksoft.kvision.helpers
-
-import com.github.snabbdom.VNode
-import pl.treksoft.kvision.core.KVManager
-import pl.treksoft.kvision.core.Widget
-import pl.treksoft.kvision.snabbdom.StringBoolPair
-import pl.treksoft.kvision.snabbdom.StringPair
-
-open class CloseIcon(classes: Set<String> = setOf()) : Widget(classes) {
-
- override fun render(): VNode {
- return kvh("button", arrayOf(KVManager.virtualize("<span aria-hidden='true'>&times;</span>")))
- }
-
- override fun getSnClass(): List<StringBoolPair> {
- val cl = super.getSnClass().toMutableList()
- cl.add("close" to true)
- return cl
- }
-
- override fun getSnAttrs(): List<StringPair> {
- return super.getSnAttrs() + listOf("type" to "button", "aria-label" to "Close")
- }
-
-}