From 4191287261b46b95908469c2ec3fa9d886681861 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 12 Feb 2018 10:51:45 +0100 Subject: Updated API doc --- docs/api/index-outline.html | 136 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 106 insertions(+), 30 deletions(-) (limited to 'docs/api/index-outline.html') diff --git a/docs/api/index-outline.html b/docs/api/index-outline.html index 6a226be2..5e920e65 100644 --- a/docs/api/index-outline.html +++ b/docs/api/index-outline.html @@ -378,6 +378,7 @@ Button(text: String, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
var block: Boolean
+fun Container.button(text: String, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Unit
var disabled: Boolean
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
@@ -586,6 +587,7 @@ CheckBox(value: Boolean = false, label: String? = null, rich: Boolean = false)
+fun Container.checkBox(value: Boolean = false, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit = null): Unit
var circled: Boolean
open var disabled: Boolean
val flabel: FieldLabel
@@ -619,6 +621,7 @@ CheckInput(type: CHECKINPUTTYPE = CHECKINPUTTYPE.CHECKBOX, value: Boolean = false, classes: Set<String> = setOf())
protected open fun afterInsert(node: VNode): Unit
protected open fun afterPostpatch(node: VNode): Unit
+fun Container.checkInput(type: CHECKINPUTTYPE = CHECKINPUTTYPE.CHECKBOX, value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): Unit
var disabled: Boolean
var extraValue: String?
protected open fun getSnAttrs(): List<StringPair>
@@ -714,6 +717,7 @@ abstract fun add(child: Component): Container
abstract fun addAll(children: List<Component>): Container
abstract fun getChildren(): List<Component>
+open operator fun invoke(vararg children: Component): Container
abstract fun remove(child: Component): Container
abstract fun removeAll(): Container
@@ -777,10 +781,11 @@ -DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel())
+DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null)
fun add(child: Component): Container
fun addAll(children: List<Component>): Container
fun clearOnUpdate(): DataContainer<M, C>
+fun <M : DataComponent, C : Component> Container.dataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null): Unit
fun getChildren(): List<Component>
fun onUpdate(handler: () -> Unit): DataContainer<M, C>
fun remove(child: Component): Container
@@ -831,6 +836,7 @@ DateTime(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)
var autofocus: Boolean?
var clearBtn: Boolean
+fun Container.dateTime(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): Unit
var daysOfWeekDisabled: Array<Int>
open var disabled: Boolean
val flabel: FieldLabel
@@ -873,6 +879,7 @@ var autofocus: Boolean?
protected open fun changeValue(): Unit
var clearBtn: Boolean
+fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): Unit
var daysOfWeekDisabled: Array<Int>
var disabled: Boolean
var format: String
@@ -906,10 +913,11 @@ -DockPanel(classes: Set<String> = setOf())
+DockPanel(classes: Set<String> = setOf(), init: DockPanel.() -> Unit = null)
open fun add(child: Component, position: SIDE): DockPanel
open fun add(child: Component): DockPanel
open fun addAll(children: List<Component>): DockPanel
+fun Container.dockPanel(classes: Set<String> = setOf(), init: DockPanel.() -> Unit = null): Unit
open fun remove(child: Component): DockPanel
open fun removeAll(): DockPanel
open fun removeAt(position: SIDE): DockPanel
@@ -931,6 +939,7 @@ 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, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): Unit
var dropup: Boolean
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
@@ -1083,7 +1092,7 @@ -FlexPanel(direction: FLEXDIR? = null, wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, alignContent: FLEXALIGNCONTENT? = null, spacing: Int? = null, classes: Set<String> = setOf())
+FlexPanel(direction: FLEXDIR? = null, wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, alignContent: FLEXALIGNCONTENT? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: FlexPanel.() -> Unit = null)
fun add(child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: Int? = null, alignSelf: FLEXALIGNITEMS? = null, classes: Set<String> = setOf()): FlexPanel
open fun add(child: Component): FlexPanel
open fun addAll(children: List<Component>): FlexPanel
@@ -1155,6 +1164,7 @@ FormPanel(type: FORMTYPE? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K)
open fun <C : FormControl> add(key: String, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun clearData(): Unit
+fun <K> Container.formPanel(type: FORMTYPE? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K>
operator fun get(key: String): Any?
open fun getControl(key: String): FormControl?
open fun getData(): K
@@ -1281,7 +1291,7 @@ -GridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf())
+GridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf(), init: GridPanel.() -> Unit = null)
fun add(child: Component, columnStart: Int? = null, rowStart: Int? = null, columnEnd: String? = null, rowEnd: String? = null, area: String? = null, justifySelf: GRIDJUSTIFY? = null, alignSelf: GRIDALIGN? = null, classes: Set<String> = setOf()): GridPanel
open fun add(child: Component): GridPanel
open fun addAll(children: List<Component>): GridPanel
@@ -1292,6 +1302,7 @@ var autoRows: String?
var columnGap: Int?
protected open fun getSnStyle(): List<StringPair>
+fun Container.gridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf(), init: GridPanel.() -> Unit = null): Unit
var justifyContent: GRIDJUSTIFYCONTENT?
var justifyItems: GRIDJUSTIFY?
open fun remove(child: Component): GridPanel
@@ -1326,7 +1337,8 @@ -HPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf())
+HPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: HPanel.() -> Unit = null)
+fun Container.hPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: HPanel.() -> Unit = null): Unit
@@ -1418,6 +1430,7 @@ var centered: Boolean
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
+fun Container.image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: IMAGESHAPE? = null, centered: Boolean = false, classes: Set<String> = setOf(), init: Image.() -> Unit = null): Unit
protected open fun render(): VNode
var responsive: Boolean
var shape: IMAGESHAPE?
@@ -1467,6 +1480,7 @@ Label(text: String, rich: Boolean = false)
+fun Container.label(text: String, rich: Boolean = false, init: Label.() -> Unit = null): Unit
@@ -1484,6 +1498,7 @@ var icon: String?
var image: ResString?
var label: String
+fun Container.link(label: String, url: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Unit
protected open fun render(): VNode
var url: String
@@ -1498,10 +1513,11 @@ -ListTag(type: LISTTYPE, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf())
+ListTag(type: LISTTYPE, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: ListTag.() -> Unit = null)
protected open fun childrenVNodes(): Array<VNode>
var elements: List<String>?
protected open fun getSnClass(): List<StringBoolPair>
+fun Container.listTag(type: LISTTYPE, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: ListTag.() -> Unit = null): Unit
protected open fun render(): VNode
var rich: Boolean
var type: LISTTYPE
@@ -1532,7 +1548,7 @@ -Modal(caption: String? = null, closeButton: Boolean = true, size: MODALSIZE? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf())
+Modal(caption: String? = null, closeButton: Boolean = true, size: MODALSIZE? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Modal.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
open fun addButton(button: Button): Modal
@@ -1602,6 +1618,7 @@ Password(value: String? = null, label: String? = null, rich: Boolean = false)
+fun Container.password(value: String? = null, label: String? = null, rich: Boolean = false, init: Password.() -> Unit = null): Unit
@@ -1642,6 +1659,7 @@ var label: String?
var name: String?
open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio
+fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit = null): Unit
open fun removeEventListeners(): Widget
var rich: Boolean
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
@@ -1672,6 +1690,7 @@ val input: Widget
var label: String?
var options: List<StringPair>?
+fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit = null): Unit
var rich: Boolean
open var size: INPUTSIZE?
val validationInfo: HelpBlock
@@ -1689,13 +1708,14 @@ -ResponsiveGridPanel(gridsize: GRIDSIZE = GRIDSIZE.MD, rows: Int = 0, cols: Int = 0, align: ALIGN? = null, classes: Set<String> = setOf())
+ResponsiveGridPanel(gridsize: GRIDSIZE = GRIDSIZE.MD, rows: Int = 0, cols: Int = 0, align: ALIGN? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null)
open fun add(child: Component, col: Int, row: Int, size: Int = 0, offset: Int = 0): ResponsiveGridPanel
open fun add(child: Component): ResponsiveGridPanel
open fun addAll(children: List<Component>): ResponsiveGridPanel
var align: ALIGN?
open fun remove(child: Component): ResponsiveGridPanel
open fun removeAt(col: Int, row: Int): ResponsiveGridPanel
+fun Container.responsiveGridPanel(gridsize: GRIDSIZE = GRIDSIZE.MD, rows: Int = 0, cols: Int = 0, align: ALIGN? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null): Unit
@@ -1711,6 +1731,7 @@ RichText(value: String? = null, label: String? = null, rich: Boolean = false)
val input: RichTextInput
var inputHeight: CssSize?
+fun Container.richText(value: String? = null, label: String? = null, rich: Boolean = false, init: RichText.() -> Unit = null): Unit
@@ -1728,6 +1749,7 @@ protected open fun afterInsert(node: VNode): Unit
protected open fun getSnAttrs(): List<StringPair>
protected open fun render(): VNode
+fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: RichTextInput.() -> Unit = null): Unit
@@ -1740,7 +1762,7 @@ -Root(id: String, fixed: Boolean = false)
+Root(id: String, fixed: Boolean = false, init: Root.() -> Unit = null)
protected fun getSnClass(): List<StringBoolPair>
protected fun render(): VNode
@@ -1824,6 +1846,7 @@ open fun removeAll(): SimplePanel
open fun removeEventListeners(): Widget
var rich: Boolean
+fun Container.select(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, label: String? = null, rich: Boolean = false, init: Select.() -> Unit = null): Unit
var selectWidth: CssSize?
var selectWidthType: SELECTWIDTHTYPE?
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
@@ -1865,6 +1888,7 @@ open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
protected open fun render(): VNode
+fun Container.selectInput(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf(), init: SelectInput.() -> Unit = null): Unit
var selectWidth: CssSize?
var selectWidthType: SELECTWIDTHTYPE?
open fun showOptions(): Unit
@@ -1924,7 +1948,7 @@ -SimplePanel(classes: Set<String> = setOf())
+SimplePanel(classes: Set<String> = setOf(), init: SimplePanel.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
protected fun addInternal(child: Component): SimplePanel
@@ -1933,6 +1957,7 @@ open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
protected open fun render(): VNode
+fun Container.simplePanel(classes: Set<String> = setOf(), init: SimplePanel.() -> Unit = null): Unit
@@ -1969,6 +1994,7 @@ open var size: INPUTSIZE?
open fun spinDown(): Spinner
open fun spinUp(): Spinner
+fun Container.spinner(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: BUTTONSTYPE = BUTTONSTYPE.VERTICAL, forceType: FORCETYPE = FORCETYPE.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Unit
var startValue: Number?
var step: Double
val validationInfo: HelpBlock
@@ -2006,6 +2032,7 @@ var size: INPUTSIZE?
fun spinDown(): SpinnerInput
fun spinUp(): SpinnerInput
+fun Container.spinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: BUTTONSTYPE = BUTTONSTYPE.VERTICAL, forceType: FORCETYPE = FORCETYPE.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): Unit
var startValue: Number?
var step: Double
var value: Number?
@@ -2021,8 +2048,9 @@ -SplitPanel(direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf())
+SplitPanel(direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf(), init: SplitPanel.() -> Unit = null)
protected open fun childrenVNodes(): Array<VNode>
+fun Container.splitPanel(direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf(), init: SplitPanel.() -> Unit = null): Unit
@@ -2035,7 +2063,7 @@ -StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf())
+StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: StackPanel.() -> Unit = null)
var activeIndex: Int
open fun add(panel: Component, route: String): StackPanel
open fun add(child: Component): StackPanel
@@ -2043,6 +2071,7 @@ protected open fun childrenVNodes(): Array<VNode>
open fun remove(child: Component): StackPanel
open fun removeAll(): StackPanel
+fun Container.stackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: StackPanel.() -> Unit = null): Unit
@@ -2177,7 +2206,7 @@ -TabPanel(classes: Set<String> = setOf())
+TabPanel(classes: Set<String> = setOf(), init: TabPanel.() -> Unit = null)
var activeIndex: Int
open fun add(child: Component): TabPanel
open fun addAll(children: List<Component>): TabPanel
@@ -2185,6 +2214,7 @@ open fun remove(child: Component): TabPanel
open fun removeAll(): TabPanel
open fun removeTab(index: Int): TabPanel
+fun Container.tabPanel(classes: Set<String> = setOf(), init: TabPanel.() -> Unit = null): Unit
@@ -2197,11 +2227,12 @@ -Tag(type: TAG, text: String? = null, rich: Boolean = false, align: ALIGN? = null, classes: Set<String> = setOf())
+Tag(type: TAG, text: String? = null, rich: Boolean = false, align: ALIGN? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null)
var align: ALIGN?
protected open fun getSnClass(): List<StringBoolPair>
protected open fun render(): VNode
var rich: Boolean
+fun Container.tag(type: TAG, text: String? = null, rich: Boolean = false, align: ALIGN? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Unit
var text: String?
var type: TAG
@@ -2219,6 +2250,7 @@ Text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, label: String? = null, rich: Boolean = false)
var autocomplete: Boolean?
val input: TextInput
+fun Container.text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, label: String? = null, rich: Boolean = false, init: Text.() -> Unit = null): Unit
var type: TEXTINPUTTYPE
@@ -2236,6 +2268,7 @@ var cols: Int?
val input: TextAreaInput
var rows: Int?
+fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, label: String? = null, rich: Boolean = false, init: TextArea.() -> Unit = null): Unit
var wrapHard: Boolean
@@ -2254,6 +2287,7 @@ protected open fun getSnAttrs(): List<StringPair>
protected open fun render(): VNode
var rows: Int?
+fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf(), init: TextAreaInput.() -> Unit = null): Unit
var wrapHard: Boolean
@@ -2271,6 +2305,7 @@ var autocomplete: Boolean?
protected open fun getSnAttrs(): List<StringPair>
protected open fun render(): VNode
+fun Container.textInput(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, classes: Set<String> = setOf(), init: TextInput.() -> Unit = null): Unit
var type: TEXTINPUTTYPE
@@ -2311,7 +2346,8 @@ -VPanel(justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf())
+VPanel(justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: VPanel.() -> Unit = null)
+fun Container.vPanel(justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: VPanel.() -> Unit = null): Unit
@@ -2354,6 +2390,7 @@ var title: String?
open fun toggleVisible(): Widget
open var visible: Boolean
+fun Container.widget(classes: Set<String> = setOf(), init: Widget.() -> Unit = null): Unit
@@ -2369,6 +2406,7 @@ WidgetWrapper(wrapped: Component?, classes: Set<String> = setOf())
protected open fun render(): VNode
open var visible: Boolean
+fun Container.widgetWrapper(wrapped: Component?, classes: Set<String> = setOf(), init: WidgetWrapper.() -> Unit = null): Unit
@@ -2796,6 +2834,7 @@ abstract fun add(child: Component): Container
abstract fun addAll(children: List<Component>): Container
abstract fun getChildren(): List<Component>
+open operator fun invoke(vararg children: Component): Container
abstract fun remove(child: Component): Container
abstract fun removeAll(): Container
@@ -2911,6 +2950,7 @@ var title: String?
open fun toggleVisible(): Widget
open var visible: Boolean
+fun Container.widget(classes: Set<String> = setOf(), init: Widget.() -> Unit = null): Unit
@@ -2926,6 +2966,7 @@ WidgetWrapper(wrapped: Component?, classes: Set<String> = setOf())
protected open fun render(): VNode
open var visible: Boolean
+fun Container.widgetWrapper(wrapped: Component?, classes: Set<String> = setOf(), init: WidgetWrapper.() -> Unit = null): Unit
@@ -2964,10 +3005,11 @@ -DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel())
+DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null)
fun add(child: Component): Container
fun addAll(children: List<Component>): Container
fun clearOnUpdate(): DataContainer<M, C>
+fun <M : DataComponent, C : Component> Container.dataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null): Unit
fun getChildren(): List<Component>
fun onUpdate(handler: () -> Unit): DataContainer<M, C>
fun remove(child: Component): Container
@@ -3033,6 +3075,7 @@ 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, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): Unit
var dropup: Boolean
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
@@ -3176,6 +3219,7 @@ FormPanel(type: FORMTYPE? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K)
open fun <C : FormControl> add(key: String, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun clearData(): Unit
+fun <K> Container.formPanel(type: FORMTYPE? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K>
operator fun get(key: String): Any?
open fun getControl(key: String): FormControl?
open fun getData(): K
@@ -3322,6 +3366,7 @@ CheckBox(value: Boolean = false, label: String? = null, rich: Boolean = false)
+fun Container.checkBox(value: Boolean = false, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit = null): Unit
var circled: Boolean
open var disabled: Boolean
val flabel: FieldLabel
@@ -3355,6 +3400,7 @@ CheckInput(type: CHECKINPUTTYPE = CHECKINPUTTYPE.CHECKBOX, value: Boolean = false, classes: Set<String> = setOf())
protected open fun afterInsert(node: VNode): Unit
protected open fun afterPostpatch(node: VNode): Unit
+fun Container.checkInput(type: CHECKINPUTTYPE = CHECKINPUTTYPE.CHECKBOX, value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): Unit
var disabled: Boolean
var extraValue: String?
protected open fun getSnAttrs(): List<StringPair>
@@ -3406,6 +3452,7 @@ var label: String?
var name: String?
open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio
+fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit = null): Unit
open fun removeEventListeners(): Widget
var rich: Boolean
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
@@ -3436,6 +3483,7 @@ val input: Widget
var label: String?
var options: List<StringPair>?
+fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit = null): Unit
var rich: Boolean
open var size: INPUTSIZE?
val validationInfo: HelpBlock
@@ -3558,6 +3606,7 @@ open fun removeAll(): SimplePanel
open fun removeEventListeners(): Widget
var rich: Boolean
+fun Container.select(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, label: String? = null, rich: Boolean = false, init: Select.() -> Unit = null): Unit
var selectWidth: CssSize?
var selectWidthType: SELECTWIDTHTYPE?
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
@@ -3599,6 +3648,7 @@ open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
protected open fun render(): VNode
+fun Container.selectInput(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf(), init: SelectInput.() -> Unit = null): Unit
var selectWidth: CssSize?
var selectWidthType: SELECTWIDTHTYPE?
open fun showOptions(): Unit
@@ -3726,6 +3776,7 @@ open var size: INPUTSIZE?
open fun spinDown(): Spinner
open fun spinUp(): Spinner
+fun Container.spinner(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: BUTTONSTYPE = BUTTONSTYPE.VERTICAL, forceType: FORCETYPE = FORCETYPE.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Unit
var startValue: Number?
var step: Double
val validationInfo: HelpBlock
@@ -3763,6 +3814,7 @@ var size: INPUTSIZE?
fun spinDown(): SpinnerInput
fun spinUp(): SpinnerInput
+fun Container.spinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: BUTTONSTYPE = BUTTONSTYPE.VERTICAL, forceType: FORCETYPE = FORCETYPE.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): Unit
var startValue: Number?
var step: Double
var value: Number?
@@ -3851,6 +3903,7 @@ Password(value: String? = null, label: String? = null, rich: Boolean = false)
+fun Container.password(value: String? = null, label: String? = null, rich: Boolean = false, init: Password.() -> Unit = null): Unit
@@ -3866,6 +3919,7 @@ RichText(value: String? = null, label: String? = null, rich: Boolean = false)
val input: RichTextInput
var inputHeight: CssSize?
+fun Container.richText(value: String? = null, label: String? = null, rich: Boolean = false, init: RichText.() -> Unit = null): Unit
@@ -3883,6 +3937,7 @@ protected open fun afterInsert(node: VNode): Unit
protected open fun getSnAttrs(): List<StringPair>
protected open fun render(): VNode
+fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: RichTextInput.() -> Unit = null): Unit
@@ -3917,6 +3972,7 @@ Text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, label: String? = null, rich: Boolean = false)
var autocomplete: Boolean?
val input: TextInput
+fun Container.text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, label: String? = null, rich: Boolean = false, init: Text.() -> Unit = null): Unit
var type: TEXTINPUTTYPE
@@ -3934,6 +3990,7 @@ var cols: Int?
val input: TextAreaInput
var rows: Int?
+fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, label: String? = null, rich: Boolean = false, init: TextArea.() -> Unit = null): Unit
var wrapHard: Boolean
@@ -3952,6 +4009,7 @@ protected open fun getSnAttrs(): List<StringPair>
protected open fun render(): VNode
var rows: Int?
+fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf(), init: TextAreaInput.() -> Unit = null): Unit
var wrapHard: Boolean
@@ -3969,6 +4027,7 @@ var autocomplete: Boolean?
protected open fun getSnAttrs(): List<StringPair>
protected open fun render(): VNode
+fun Container.textInput(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, classes: Set<String> = setOf(), init: TextInput.() -> Unit = null): Unit
var type: TEXTINPUTTYPE
@@ -3997,6 +4056,7 @@ DateTime(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)
var autofocus: Boolean?
var clearBtn: Boolean
+fun Container.dateTime(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): Unit
var daysOfWeekDisabled: Array<Int>
open var disabled: Boolean
val flabel: FieldLabel
@@ -4039,6 +4099,7 @@ var autofocus: Boolean?
protected open fun changeValue(): Unit
var clearBtn: Boolean
+fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): Unit
var daysOfWeekDisabled: Array<Int>
var disabled: Boolean
var format: String
@@ -4196,6 +4257,7 @@ Button(text: String, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
var block: Boolean
+fun Container.button(text: String, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Unit
var disabled: Boolean
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
@@ -4238,6 +4300,7 @@ var centered: Boolean
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
+fun Container.image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: IMAGESHAPE? = null, centered: Boolean = false, classes: Set<String> = setOf(), init: Image.() -> Unit = null): Unit
protected open fun render(): VNode
var responsive: Boolean
var shape: IMAGESHAPE?
@@ -4273,6 +4336,7 @@ Label(text: String, rich: Boolean = false)
+fun Container.label(text: String, rich: Boolean = false, init: Label.() -> Unit = null): Unit
@@ -4290,6 +4354,7 @@ var icon: String?
var image: ResString?
var label: String
+fun Container.link(label: String, url: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Unit
protected open fun render(): VNode
var url: String
@@ -4304,10 +4369,11 @@ -ListTag(type: LISTTYPE, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf())
+ListTag(type: LISTTYPE, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: ListTag.() -> Unit = null)
protected open fun childrenVNodes(): Array<VNode>
var elements: List<String>?
protected open fun getSnClass(): List<StringBoolPair>
+fun Container.listTag(type: LISTTYPE, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: ListTag.() -> Unit = null): Unit
protected open fun render(): VNode
var rich: Boolean
var type: LISTTYPE
@@ -4368,11 +4434,12 @@ -Tag(type: TAG, text: String? = null, rich: Boolean = false, align: ALIGN? = null, classes: Set<String> = setOf())
+Tag(type: TAG, text: String? = null, rich: Boolean = false, align: ALIGN? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null)
var align: ALIGN?
protected open fun getSnClass(): List<StringBoolPair>
protected open fun render(): VNode
var rich: Boolean
+fun Container.tag(type: TAG, text: String? = null, rich: Boolean = false, align: ALIGN? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Unit
var text: String?
var type: TAG
@@ -4466,7 +4533,7 @@ -Modal(caption: String? = null, closeButton: Boolean = true, size: MODALSIZE? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf())
+Modal(caption: String? = null, closeButton: Boolean = true, size: MODALSIZE? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Modal.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
open fun addButton(button: Button): Modal
@@ -4519,10 +4586,11 @@ -DockPanel(classes: Set<String> = setOf())
+DockPanel(classes: Set<String> = setOf(), init: DockPanel.() -> Unit = null)
open fun add(child: Component, position: SIDE): DockPanel
open fun add(child: Component): DockPanel
open fun addAll(children: List<Component>): DockPanel
+fun Container.dockPanel(classes: Set<String> = setOf(), init: DockPanel.() -> Unit = null): Unit
open fun remove(child: Component): DockPanel
open fun removeAll(): DockPanel
open fun removeAt(position: SIDE): DockPanel
@@ -4622,7 +4690,7 @@ -FlexPanel(direction: FLEXDIR? = null, wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, alignContent: FLEXALIGNCONTENT? = null, spacing: Int? = null, classes: Set<String> = setOf())
+FlexPanel(direction: FLEXDIR? = null, wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, alignContent: FLEXALIGNCONTENT? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: FlexPanel.() -> Unit = null)
fun add(child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: Int? = null, alignSelf: FLEXALIGNITEMS? = null, classes: Set<String> = setOf()): FlexPanel
open fun add(child: Component): FlexPanel
open fun addAll(children: List<Component>): FlexPanel
@@ -4749,7 +4817,7 @@ -GridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf())
+GridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf(), init: GridPanel.() -> Unit = null)
fun add(child: Component, columnStart: Int? = null, rowStart: Int? = null, columnEnd: String? = null, rowEnd: String? = null, area: String? = null, justifySelf: GRIDJUSTIFY? = null, alignSelf: GRIDALIGN? = null, classes: Set<String> = setOf()): GridPanel
open fun add(child: Component): GridPanel
open fun addAll(children: List<Component>): GridPanel
@@ -4760,6 +4828,7 @@ var autoRows: String?
var columnGap: Int?
protected open fun getSnStyle(): List<StringPair>
+fun Container.gridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf(), init: GridPanel.() -> Unit = null): Unit
var justifyContent: GRIDJUSTIFYCONTENT?
var justifyItems: GRIDJUSTIFY?
open fun remove(child: Component): GridPanel
@@ -4794,7 +4863,8 @@ -HPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf())
+HPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: HPanel.() -> Unit = null)
+fun Container.hPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: HPanel.() -> Unit = null): Unit
@@ -4807,13 +4877,14 @@ -ResponsiveGridPanel(gridsize: GRIDSIZE = GRIDSIZE.MD, rows: Int = 0, cols: Int = 0, align: ALIGN? = null, classes: Set<String> = setOf())
+ResponsiveGridPanel(gridsize: GRIDSIZE = GRIDSIZE.MD, rows: Int = 0, cols: Int = 0, align: ALIGN? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null)
open fun add(child: Component, col: Int, row: Int, size: Int = 0, offset: Int = 0): ResponsiveGridPanel
open fun add(child: Component): ResponsiveGridPanel
open fun addAll(children: List<Component>): ResponsiveGridPanel
var align: ALIGN?
open fun remove(child: Component): ResponsiveGridPanel
open fun removeAt(col: Int, row: Int): ResponsiveGridPanel
+fun Container.responsiveGridPanel(gridsize: GRIDSIZE = GRIDSIZE.MD, rows: Int = 0, cols: Int = 0, align: ALIGN? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null): Unit
@@ -4826,7 +4897,7 @@ -Root(id: String, fixed: Boolean = false)
+Root(id: String, fixed: Boolean = false, init: Root.() -> Unit = null)
protected fun getSnClass(): List<StringBoolPair>
protected fun render(): VNode
@@ -4858,7 +4929,7 @@ -SimplePanel(classes: Set<String> = setOf())
+SimplePanel(classes: Set<String> = setOf(), init: SimplePanel.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
protected fun addInternal(child: Component): SimplePanel
@@ -4867,6 +4938,7 @@ open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
protected open fun render(): VNode
+fun Container.simplePanel(classes: Set<String> = setOf(), init: SimplePanel.() -> Unit = null): Unit
@@ -4879,8 +4951,9 @@ -SplitPanel(direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf())
+SplitPanel(direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf(), init: SplitPanel.() -> Unit = null)
protected open fun childrenVNodes(): Array<VNode>
+fun Container.splitPanel(direction: DIRECTION = DIRECTION.VERTICAL, classes: Set<String> = setOf(), init: SplitPanel.() -> Unit = null): Unit
@@ -4893,7 +4966,7 @@ -StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf())
+StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: StackPanel.() -> Unit = null)
var activeIndex: Int
open fun add(panel: Component, route: String): StackPanel
open fun add(child: Component): StackPanel
@@ -4901,6 +4974,7 @@ protected open fun childrenVNodes(): Array<VNode>
open fun remove(child: Component): StackPanel
open fun removeAll(): StackPanel
+fun Container.stackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: StackPanel.() -> Unit = null): Unit
@@ -4913,7 +4987,7 @@ -TabPanel(classes: Set<String> = setOf())
+TabPanel(classes: Set<String> = setOf(), init: TabPanel.() -> Unit = null)
var activeIndex: Int
open fun add(child: Component): TabPanel
open fun addAll(children: List<Component>): TabPanel
@@ -4921,6 +4995,7 @@ open fun remove(child: Component): TabPanel
open fun removeAll(): TabPanel
open fun removeTab(index: Int): TabPanel
+fun Container.tabPanel(classes: Set<String> = setOf(), init: TabPanel.() -> Unit = null): Unit
@@ -4933,7 +5008,8 @@ -VPanel(justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf())
+VPanel(justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: VPanel.() -> Unit = null)
+fun Container.vPanel(justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: VPanel.() -> Unit = null): Unit
-- cgit