From 6971a2b7383b376223a49c7eb5e900e36fcd6e8f Mon Sep 17 00:00:00 2001 From: Robbie Cronin Date: Wed, 1 May 2019 17:22:33 +0800 Subject: Update Options name to TabulatorOptions in toJs extension --- .../src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvision-modules/kvision-tabulator/src/main/kotlin/pl') diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt index bb13372d..dac29ab9 100644 --- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt +++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt @@ -572,7 +572,7 @@ data class TabulatorOptions( * An extension function to convert tabulator options class to JS object. */ @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE", "ComplexMethod") -fun Options.toJs(i18nTranslator: (String) -> (String)): Tabulator.Options { +fun TabulatorOptions.toJs(i18nTranslator: (String) -> (String)): Tabulator.Options { return obj { if (height != null) this.height = height if (virtualDom != null) this.virtualDom = virtualDom -- cgit