diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-01-20 14:21:53 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-01-20 14:21:53 +0100 |
commit | 36faf5081ec2f83fe75a3b56f5887ce3c6197cc4 (patch) | |
tree | c3f79cf4f9c2fc11c0f869bc3a1d27e700c5cdc0 /kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision | |
parent | dbe9ddafc5f48ccf0979625b041b0cdf1c1f5795 (diff) | |
download | kvision-36faf5081ec2f83fe75a3b56f5887ce3c6197cc4.tar.gz kvision-36faf5081ec2f83fe75a3b56f5887ce3c6197cc4.tar.bz2 kvision-36faf5081ec2f83fe75a3b56f5887ce3c6197cc4.zip |
Fix tabulator module dependencies
Diffstat (limited to 'kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision')
-rw-r--r-- | kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt | 35 |
1 files changed, 0 insertions, 35 deletions
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<T : Any>( } return tabulator } - - /** - * A helper function to create a Tabulator object with correct serializer and dedicated redux store. - */ - fun <T : Any> create( - store: ObservableState<List<T>>, - options: TabulatorOptions<T> = TabulatorOptions(), - types: Set<TableType> = setOf(), - classes: Set<String> = setOf(), - init: (Tabulator<T>.() -> Unit)? = null - ): Tabulator<T> { - val data = store.getState() - val tabulator = Tabulator(data, false, options, types, classes) - init?.invoke(tabulator) - store.subscribe { s -> - tabulator.replaceData(s.toTypedArray()) - } - return tabulator - } } } @@ -785,22 +766,6 @@ fun <T : Any, S : Any> Container.tabulator( } /** - * DSL builder extension function for dedicated redux store (backed with a list). - */ -fun <T : Any> Container.tabulator( - store: ObservableState<List<T>>, - options: TabulatorOptions<T> = TabulatorOptions(), - types: Set<TableType> = setOf(), - classes: Set<String> = setOf(), - init: (Tabulator<T>.() -> Unit)? = null -): Tabulator<T> { - 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). */ fun <T : Any> Container.tabulator( |