From a1331da2233a7198af89a9db2ec743a430b89362 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf())
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
protected open fun afterInsert(node: VNode): Unit
var block: Boolean
var disabled: Boolean
-fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
var dropup: Boolean
val forNavbar: Boolean
open fun getChildren(): List<Component>
@@ -1764,6 +1764,7 @@
Iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf())
+open fun getIframeWindow(): Window
protected open fun getSnAttrs(): List<StringPair>
fun Container.iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf(), init: Iframe.() -> Unit = null): Iframe
var iframeHeight: Int?
@@ -1874,6 +1875,7 @@
fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun ListTag.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun DropDown.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
+open fun onClick(handler: Link.(MouseEvent) -> Unit): Link
protected open fun render(): VNode
var url: String?
@@ -2016,14 +2018,14 @@
-Navbar(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
+Navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
open fun add(: Component): Navbar
open fun addAll(: List<Component>): Navbar
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
var inverted: Boolean
-var label: String
-fun Container.navbarPanel(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null): Navbar
+var label: String?
+fun Container.navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null): Navbar
open fun remove(: Component): Navbar
open fun removeAll(): Navbar
protected open fun render(): VNode
@@ -4569,13 +4571,13 @@
-DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf())
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf())
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
protected open fun afterInsert(node: VNode): Unit
var block: Boolean
var disabled: Boolean
-fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
var dropup: Boolean
val forNavbar: Boolean
open fun getChildren(): List<Component>
@@ -6082,6 +6084,7 @@
Iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf())
+open fun getIframeWindow(): Window
protected open fun getSnAttrs(): List<StringPair>
fun Container.iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf(), init: Iframe.() -> Unit = null): Iframe
var iframeHeight: Int?
@@ -6163,6 +6166,7 @@
fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun ListTag.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun DropDown.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
+open fun onClick(handler: Link.(MouseEvent) -> Unit): Link
protected open fun render(): VNode
var url: String?
@@ -6478,14 +6482,14 @@
-Navbar(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
+Navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
open fun add(: Component): Navbar
open fun addAll(: List<Component>): Navbar
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
var inverted: Boolean
-var label: String
-fun Container.navbarPanel(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null): Navbar
+var label: String?
+fun Container.navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null): Navbar
open fun remove(: Component): Navbar
open fun removeAll(): Navbar
protected open fun render(): VNode
diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html b/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
index ccb09c31..67e3cdef 100644
--- a/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
+++ b/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
@@ -8,8 +8,8 @@
kvision / pl.treksoft.kvision.dropdown / DropDown / <init>
<init>
-
-DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf())
+
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf())
Parameters
text
- the label of the dropdown buttondisabled
- determines if the component is disabled on start
forNavbar
- determines if the component will be used in a navbar
+withCaret
- determines if the dropdown button renders caret
classes
- a set of CSS class names
Constructor
diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html b/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
index 84df9354..0c1af12f 100644
--- a/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
+++ b/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
@@ -8,8 +8,8 @@
kvision / pl.treksoft.kvision.dropdown / DropDown / dropDown
fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
DSL builder extension function.
It takes the same parameters as the constructor of the built component.
diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/index.html b/api/pl.treksoft.kvision.dropdown/-drop-down/index.html index 6dbac1d8..8fef07e2 100644 --- a/api/pl.treksoft.kvision.dropdown/-drop-down/index.html +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/index.html @@ -18,7 +18,7 @@DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf())
DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf())
@@ -234,7 +234,7 @@
fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
DSL builder extension function.
open fun getIframeWindow(): Window
+Returns content window object of the iframe.
+Return
+content window object
open fun getIframeWindow(): Window
+Returns content window object of the iframe.
+open fun onClick(handler: Link.(MouseEvent) -> Unit): Link
+A convenient helper for easy setting onClick event handler.
+open fun onClick(handler: Link.(MouseEvent) -> Unit): Link
+A convenient helper for easy setting onClick event handler.
+ + diff --git a/api/pl.treksoft.kvision.navbar/-navbar/-init-.html b/api/pl.treksoft.kvision.navbar/-navbar/-init-.html index 16fea1e0..34af742b 100644 --- a/api/pl.treksoft.kvision.navbar/-navbar/-init-.html +++ b/api/pl.treksoft.kvision.navbar/-navbar/-init-.html @@ -9,7 +9,7 @@Navbar(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
+Navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
Navbar(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
Navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null)
var label: String
+var label: String?
The navbar header label.
fun Container.navbarPanel(: String = "", : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null): Navbar
+fun Container.navbar(: String? = null, : NavbarType? = null, : Boolean = false, : Set<String> = setOf(), : Navbar.() -> Unit = null): Navbar
DSL builder extension function.
var label: String
+var label: String?
The navbar header label.