diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-10-25 20:46:42 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-10-25 20:46:42 +0200 |
commit | c78775aa2aaf76f9fa1404ff32a10fb8227f380e (patch) | |
tree | a6991e1f520e1ce54679b2194a756203a645f99e /src/main/kotlin/pl/treksoft | |
parent | a990385dd3f2dbac4807b7a9498271efb3519c0d (diff) | |
download | kvision-c78775aa2aaf76f9fa1404ff32a10fb8227f380e.tar.gz kvision-c78775aa2aaf76f9fa1404ff32a10fb8227f380e.tar.bz2 kvision-c78775aa2aaf76f9fa1404ff32a10fb8227f380e.zip |
Style fixes
Diffstat (limited to 'src/main/kotlin/pl/treksoft')
4 files changed, 10 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt index 9b3e9226..ad1bd626 100644 --- a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt +++ b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt @@ -445,7 +445,9 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent(), Component open fun enableTooltip(options: TooltipOptions = TooltipOptions()): Widget { this.tooltipOptions = options val tooltipFun = getElementJQueryD()?.tooltip - if (tooltipFun != undefined) getElementJQueryD()?.tooltip(options.copy(title = options.title?.let { translate(it) }).toJs()) + if (tooltipFun != undefined) getElementJQueryD()?.tooltip( + options.copy(title = options.title?.let { translate(it) }).toJs() + ) return this } @@ -638,7 +640,9 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent(), Component this.tooltipOptions?.let { @Suppress("UnsafeCastFromDynamic") val tooltipFun = getElementJQueryD()?.tooltip - if (tooltipFun != undefined) getElementJQueryD()?.tooltip(it.copy(title = it.title?.let { translate(it) }).toJs()) + if (tooltipFun != undefined) getElementJQueryD()?.tooltip( + it.copy(title = it.title?.let { translate(it) }).toJs() + ) } this.popoverOptions?.let { @Suppress("UnsafeCastFromDynamic") diff --git a/src/main/kotlin/pl/treksoft/kvision/html/List.kt b/src/main/kotlin/pl/treksoft/kvision/html/List.kt index af8957ce..cdd18cfc 100644 --- a/src/main/kotlin/pl/treksoft/kvision/html/List.kt +++ b/src/main/kotlin/pl/treksoft/kvision/html/List.kt @@ -94,7 +94,7 @@ open class ListTag( } } - @Suppress("ComplexCondition") + @Suppress("ComplexCondition", "ComplexMethod") override fun childrenVNodes(): Array<VNode> { val childrenElements = children.filter { it.visible } val res = when (type) { diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt b/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt index 111d4738..8847a3c6 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt @@ -222,6 +222,7 @@ class Root : SimplePanel { * @param init an initializer extension function * @return the created Root container */ +@Suppress("unused") fun Application.root(id: String, fixed: Boolean = false, init: Root.() -> Unit): Root { return Root(id, fixed, init) } @@ -234,6 +235,7 @@ fun Application.root(id: String, fixed: Boolean = false, init: Root.() -> Unit): * @param init an initializer extension function * @return the created Root container */ +@Suppress("unused") fun Application.root(element: HTMLElement, fixed: Boolean = false, init: Root.() -> Unit): Root { return Root(element, fixed, init) } diff --git a/src/main/kotlin/pl/treksoft/kvision/table/Table.kt b/src/main/kotlin/pl/treksoft/kvision/table/Table.kt index 114e3dfa..6c48157d 100644 --- a/src/main/kotlin/pl/treksoft/kvision/table/Table.kt +++ b/src/main/kotlin/pl/treksoft/kvision/table/Table.kt @@ -70,7 +70,7 @@ enum class TheadType(internal val type: String) { * @param headerNames a list of table headers names * @param types a set of table types * @param caption table caption - * @param responsive determines if the table is responsive + * @param responsiveType determines if the table is responsive * @param classes a set of CSS class names * @param init an initializer extension function */ |