From 36faf5081ec2f83fe75a3b56f5887ce3c6197cc4 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 20 Jan 2020 14:21:53 +0100 Subject: Fix tabulator module dependencies --- .../pl/treksoft/kvision/tabulator/Tabulator.kt | 35 ---------------------- 1 file changed, 35 deletions(-) (limited to 'kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision') diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt index ac7ff533..048c1b1d 100644 --- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt +++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt @@ -726,25 +726,6 @@ open class Tabulator( } return tabulator } - - /** - * A helper function to create a Tabulator object with correct serializer and dedicated redux store. - */ - fun create( - store: ObservableState>, - options: TabulatorOptions = TabulatorOptions(), - types: Set = setOf(), - classes: Set = setOf(), - init: (Tabulator.() -> Unit)? = null - ): Tabulator { - val data = store.getState() - val tabulator = Tabulator(data, false, options, types, classes) - init?.invoke(tabulator) - store.subscribe { s -> - tabulator.replaceData(s.toTypedArray()) - } - return tabulator - } } } @@ -784,22 +765,6 @@ fun Container.tabulator( return tabulator } -/** - * DSL builder extension function for dedicated redux store (backed with a list). - */ -fun Container.tabulator( - store: ObservableState>, - options: TabulatorOptions = TabulatorOptions(), - types: Set = setOf(), - classes: Set = setOf(), - init: (Tabulator.() -> Unit)? = null -): Tabulator { - val tabulator = Tabulator.create(store, options, types, classes) - init?.invoke(tabulator) - this.add(tabulator) - return tabulator -} - /** * DSL builder extension function for dynamic data (send within options parameter). */ -- cgit