diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-07-13 00:21:33 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-07-13 00:59:50 +0200 |
commit | a804e0aa277efc1b46c1111b0ad8302d267684b2 (patch) | |
tree | dbd5329f003b386b5196b510526c9cee75db3514 /kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision | |
parent | 7fe158d0f2243c460c4f1848bb7989c559362cdf (diff) | |
download | kvision-a804e0aa277efc1b46c1111b0ad8302d267684b2.tar.gz kvision-a804e0aa277efc1b46c1111b0ad8302d267684b2.tar.bz2 kvision-a804e0aa277efc1b46c1111b0ad8302d267684b2.zip |
Refactor RemoteSelect -> SelectRemote and RemoteTabulator -> TabulatorRemote
Diffstat (limited to 'kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision')
-rw-r--r-- | kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt (renamed from kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/RemoteTabulator.kt) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/RemoteTabulator.kt b/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt index 8070a187..4478b942 100644 --- a/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/RemoteTabulator.kt +++ b/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt @@ -47,7 +47,7 @@ import pl.treksoft.kvision.utils.JSON * @param classes a set of CSS class names */ @UseExperimental(ImplicitReflectionSerializer::class) -open class RemoteTabulator<T : Any, E : Any>( +open class TabulatorRemote<T : Any, E : Any>( serviceManager: KVServiceManager<E>, function: E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?) -> RemoteData<T>, options: TabulatorOptions<T> = TabulatorOptions(), @@ -96,18 +96,18 @@ open class RemoteTabulator<T : Any, E : Any>( * * It takes the same parameters as the constructor of the built component. */ - fun <T : Any, E : Any> Container.remoteTabulator( + fun <T : Any, E : Any> Container.tabulatorRemote( serviceManager: KVServiceManager<E>, function: E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?) -> RemoteData<T>, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), - init: (RemoteTabulator<T, E>.() -> Unit)? = null - ): RemoteTabulator<T, E> { - val remoteTabulator = RemoteTabulator(serviceManager, function, options, types, classes) - init?.invoke(remoteTabulator) - this.add(remoteTabulator) - return remoteTabulator + init: (TabulatorRemote<T, E>.() -> Unit)? = null + ): TabulatorRemote<T, E> { + val tabulatorRemote = TabulatorRemote(serviceManager, function, options, types, classes) + init?.invoke(tabulatorRemote) + this.add(tabulatorRemote) + return tabulatorRemote } } |