kvision
Module Contents
alltypes
Module Contents
enum class ALIGN
abstract class AbstractText : SimplePanel, StringFormControl
abstract class AbstractTextInput : Widget
data class AjaxOptions
Module Contents
AjaxOptions(url: String, preprocessData: (dynamic) -> dynamic, beforeSend: (JQueryXHR) -> dynamic = null, data: dynamic = null, httpType: HTTPTYPE = HTTPTYPE.GET, dataType: DATATYPE = DATATYPE.JSON, minLength: Int = 0, cache: Boolean = true, clearOnEmpty: Boolean = true, clearOnError: Boolean = true, emptyRequest: Boolean = false, requestDelay: Int = AJAX_REQUEST_DELAY, restoreOnError: Boolean = false)
val beforeSend: (JQueryXHR) -> dynamic
val cache: Boolean
val clearOnEmpty: Boolean
val clearOnError: Boolean
val data: dynamic
val dataType: DATATYPE
val emptyRequest: Boolean
val httpType: HTTPTYPE
val minLength: Int
val preprocessData: (dynamic) -> dynamic
val requestDelay: Int
val restoreOnError: Boolean
val url: String
open class Alert : Modal
Module Contents
Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, callback: () -> Unit = null)
var align: ALIGN?
open fun hide(): Widget
var rich: Boolean
fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, callback: () -> Unit = null): Unit
var text: String?
abstract class ApplicationBase
enum class BGATTACH
enum class BGCLIP
enum class BGORIGIN
enum class BGREPEAT
enum class BGSIZE
enum class BORDERSTYLE
enum class BUTTONSIZE
enum class BUTTONSTYLE
enum class BUTTONSTYPE
class Background
Module Contents
Background(image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BGSIZE? = null, repeat: BGREPEAT? = null, origin: BGORIGIN? = null, clip: BGCLIP? = null, attachment: BGATTACH? = null)
Background(color: Int, image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BGSIZE? = null, repeat: BGREPEAT? = null, origin: BGORIGIN? = null, clip: BGCLIP? = null, attachment: BGATTACH? = null)
Background(color: COLOR, image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BGSIZE? = null, repeat: BGREPEAT? = null, origin: BGORIGIN? = null, clip: BGCLIP? = null, attachment: BGATTACH? = null)
abstract class BaseDataComponent : DataComponent
interface BoolFormControl : FormControl
class Border
open class Button : Widget
enum class CHECKBOXSTYLE
enum class CHECKINPUTTYPE
enum class COLOR
open class CheckBox : SimplePanel, BoolFormControl
open class CheckInput : Widget
open class CloseIcon : Widget
class Color
interface Component
open class Confirm : Modal
Module Contents
Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null)
var align: ALIGN?
var cancelVisible: Boolean
var rich: Boolean
fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit
var text: String?
interface Container : Component
typealias CssSize = Pair<Int, UNIT>
enum class DATATYPE
enum class DD
enum class DIRECTION
interface DataComponent
class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
Module Contents
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
fun removeAll(): Container
fun update(): Unit
var visible: Boolean
interface DataUpdatable
interface DateFormControl : FormControl
open class DateTime : SimplePanel, DateFormControl
open class DateTimeInput : Widget
open class DockPanel : SimplePanel
open class DropDown : SimplePanel
Module Contents
DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, 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, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): Unit
var dropup: Boolean
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
var icon: String?
var image: ResString?
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
var size: BUTTONSIZE?
var style: BUTTONSTYLE
var text: String
open fun toggle(): Unit
open var width: CssSize?
enum class FLEXALIGNCONTENT
enum class FLEXALIGNITEMS
enum class FLEXDIR
enum class FLEXJUSTIFY
enum class FLEXWRAP
enum class FORCETYPE
enum class FORMTYPE
open class FieldLabel : Tag
open class FlexPanel : SimplePanel
Module Contents
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
var alignContent: FLEXALIGNCONTENT?
var alignItems: FLEXALIGNITEMS?
var direction: FLEXDIR?
protected open fun getSnStyle(): List<StringPair>
var justify: FLEXJUSTIFY?
open fun remove(child: Component): FlexPanel
open fun removeAll(): FlexPanel
var spacing: Int?
var wrap: FLEXWRAP?
class Form<K>
interface FormControl : Component
open class FormPanel<K> : SimplePanel
Module Contents
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
open fun getDataJson(): Json
protected open fun getSnClass(): List<StringBoolPair>
open fun remove(key: String): FormPanel<K>
open fun removeAll(): FormPanel<K>
protected open fun render(): VNode
open fun setData(model: K): Unit
open fun validate(): Boolean
var validator: (Form<K>) -> Boolean?
var validatorMessage: (Form<K>) -> String?
enum class GRIDALIGN
enum class GRIDALIGNCONTENT
enum class GRIDFLOW
enum class GRIDJUSTIFY
enum class GRIDJUSTIFYCONTENT
enum class GRIDSIZE
open class GridPanel : SimplePanel
Module Contents
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
var alignContent: GRIDALIGNCONTENT?
var alignItems: GRIDALIGN?
var autoColumns: String?
var autoFlow: GRIDFLOW?
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
open fun removeAll(): GridPanel
var rowGap: Int?
var templateAreas: List<String>?
var templateColumns: String?
var templateRows: String?
class GridWrapper : WidgetWrapper
open class HPanel : FlexPanel
Module Contents
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
enum class HTTPTYPE
open class HelpBlock : Tag
external interface Hot
enum class IMAGESHAPE
enum class INPUTSIZE
open class Image : Widget
Module Contents
Image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: IMAGESHAPE? = null, centered: Boolean = false, classes: Set<String> = setOf())
var alt: String?
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?
var src: ResString
class KvEvent : CustomEvent
enum class LISTTYPE
open class Label : Tag
open class Link : SimplePanel
open class ListTag : SimplePanel
enum class MODALSIZE
open class Modal : SimplePanel
external interface Module
interface NumberFormControl : FormControl
external class Object
open class Password : Text
enum class RADIOSTYLE
open class Radio : SimplePanel, BoolFormControl
open class RadioGroup : SimplePanel, StringFormControl
typealias ResString = String
open class ResponsiveGridPanel : SimplePanel
Module Contents
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
open class RichText : AbstractText
open class RichTextInput : AbstractTextInput
class Root : SimplePanel
open class Routing
enum class SELECTWIDTHTYPE
enum class SIDE
open class Select : SimplePanel, StringFormControl
Module Contents
Select(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, label: String? = null, rich: Boolean = false)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
var ajaxOptions: AjaxOptions?
var autofocus: Boolean?
open var disabled: Boolean
var emptyOption: Boolean
val flabel: FieldLabel
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
open fun hideOptions(): Unit
val input: SelectInput
var label: String?
var liveSearch: Boolean
var maxOptions: Int?
var multiple: Boolean
var name: String?
var options: List<StringPair>?
var placeholder: String?
open fun remove(child: Component): SimplePanel
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
open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
open fun showOptions(): Unit
open var size: INPUTSIZE?
var style: BUTTONSTYLE?
open fun toggleOptions(): Unit
val validationInfo: HelpBlock
open var value: String?
open class SelectInput : SimplePanel
open class SelectOptGroup : SimplePanel
open class SelectOption : Widget
open class SimplePanel : Widget, Container
open class Spinner : SimplePanel, NumberFormControl
Module Contents
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)
var autofocus: Boolean?
var buttonsType: BUTTONSTYPE
var decimals: Int
open var disabled: Boolean
val flabel: FieldLabel
var forceType: FORCETYPE
protected open fun getSnClass(): List<StringBoolPair>
open fun getValueAsString(): String?
protected val idc: String
val input: SpinnerInput
var label: String?
var max: Int
var min: Int
var name: String?
var placeholder: String?
var readonly: Boolean?
open fun removeEventListeners(): Widget
var rich: Boolean
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
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
open var value: Number?
open class SpinnerInput : Widget
Module Contents
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())
protected open fun afterDestroy(): Unit
protected open fun afterInsert(node: VNode): Unit
var autofocus: Boolean?
var buttonsType: BUTTONSTYPE
protected open fun changeValue(): Unit
var decimals: Int
var disabled: Boolean
var forceType: FORCETYPE
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
fun getValueAsString(): String?
var max: Int
var min: Int
var name: String?
var placeholder: String?
var readonly: Boolean?
protected open fun render(): VNode
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?
open class SplitPanel : SimplePanel
open class StackPanel : SimplePanel
typealias StringBoolPair = Pair<String, Boolean>
interface StringFormControl : FormControl
typealias StringPair = Pair<String, String>
abstract class StyledComponent : Component
enum class TAG
enum class TEXTINPUTTYPE
open class TabPanel : SimplePanel
open class Tag : SimplePanel
Module Contents
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
open class Text : AbstractText
open class TextArea : AbstractText
open class TextAreaInput : AbstractTextInput
open class TextInput : AbstractTextInput
enum class UNIT
open class VPanel : FlexPanel
open class Widget : StyledComponent
open class WidgetWrapper : Widget
kotlin.Int
kotlin.Pair
kotlin.String
kotlin.collections.Map
kotlin.js.Date
package pl.treksoft.kvision.core
Module Contents
enum class BGATTACH
enum class BGCLIP
enum class BGORIGIN
enum class BGREPEAT
enum class BGSIZE
enum class BORDERSTYLE
class Background
Module Contents
Background(image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BGSIZE? = null, repeat: BGREPEAT? = null, origin: BGORIGIN? = null, clip: BGCLIP? = null, attachment: BGATTACH? = null)
Background(color: Int, image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BGSIZE? = null, repeat: BGREPEAT? = null, origin: BGORIGIN? = null, clip: BGCLIP? = null, attachment: BGATTACH? = null)
Background(color: COLOR, image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BGSIZE? = null, repeat: BGREPEAT? = null, origin: BGORIGIN? = null, clip: BGCLIP? = null, attachment: BGATTACH? = null)
class Border
enum class COLOR
class Color
interface Component
interface Container : Component
typealias CssSize = Pair<Int, UNIT>
typealias ResString = String
typealias StringBoolPair = Pair<String, Boolean>
typealias StringPair = Pair<String, String>
abstract class StyledComponent : Component
enum class UNIT
open class Widget : StyledComponent
open class WidgetWrapper : Widget
package pl.treksoft.kvision.data
Module Contents
abstract class BaseDataComponent : DataComponent
interface DataComponent
class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
Module Contents
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
fun removeAll(): Container
fun update(): Unit
var visible: Boolean
interface DataUpdatable
package pl.treksoft.kvision.dropdown
Module Contents
enum class DD
open class DropDown : SimplePanel
Module Contents
DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, 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, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): Unit
var dropup: Boolean
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
var icon: String?
var image: ResString?
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
var size: BUTTONSIZE?
var style: BUTTONSTYLE
var text: String
open fun toggle(): Unit
open var width: CssSize?
package pl.treksoft.kvision.form
Module Contents
interface BoolFormControl : FormControl
interface DateFormControl : FormControl
enum class FORMTYPE
open class FieldLabel : Tag
class Form<K>
interface FormControl : Component
open class FormPanel<K> : SimplePanel
Module Contents
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
open fun getDataJson(): Json
protected open fun getSnClass(): List<StringBoolPair>
open fun remove(key: String): FormPanel<K>
open fun removeAll(): FormPanel<K>
protected open fun render(): VNode
open fun setData(model: K): Unit
open fun validate(): Boolean
var validator: (Form<K>) -> Boolean?
var validatorMessage: (Form<K>) -> String?
open class HelpBlock : Tag
enum class INPUTSIZE
interface NumberFormControl : FormControl
interface StringFormControl : FormControl
kotlin.collections.Map
package pl.treksoft.kvision.form.check
package pl.treksoft.kvision.form.select
Module Contents
data class AjaxOptions
Module Contents
AjaxOptions(url: String, preprocessData: (dynamic) -> dynamic, beforeSend: (JQueryXHR) -> dynamic = null, data: dynamic = null, httpType: HTTPTYPE = HTTPTYPE.GET, dataType: DATATYPE = DATATYPE.JSON, minLength: Int = 0, cache: Boolean = true, clearOnEmpty: Boolean = true, clearOnError: Boolean = true, emptyRequest: Boolean = false, requestDelay: Int = AJAX_REQUEST_DELAY, restoreOnError: Boolean = false)
val beforeSend: (JQueryXHR) -> dynamic
val cache: Boolean
val clearOnEmpty: Boolean
val clearOnError: Boolean
val data: dynamic
val dataType: DATATYPE
val emptyRequest: Boolean
val httpType: HTTPTYPE
val minLength: Int
val preprocessData: (dynamic) -> dynamic
val requestDelay: Int
val restoreOnError: Boolean
val url: String
enum class DATATYPE
enum class HTTPTYPE
enum class SELECTWIDTHTYPE
open class Select : SimplePanel, StringFormControl
Module Contents
Select(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, label: String? = null, rich: Boolean = false)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
var ajaxOptions: AjaxOptions?
var autofocus: Boolean?
open var disabled: Boolean
var emptyOption: Boolean
val flabel: FieldLabel
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
open fun hideOptions(): Unit
val input: SelectInput
var label: String?
var liveSearch: Boolean
var maxOptions: Int?
var multiple: Boolean
var name: String?
var options: List<StringPair>?
var placeholder: String?
open fun remove(child: Component): SimplePanel
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
open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
open fun showOptions(): Unit
open var size: INPUTSIZE?
var style: BUTTONSTYLE?
open fun toggleOptions(): Unit
val validationInfo: HelpBlock
open var value: String?
open class SelectInput : SimplePanel
open class SelectOptGroup : SimplePanel
open class SelectOption : Widget
fun AjaxOptions.toJs(emptyOption: Boolean): dynamic
package pl.treksoft.kvision.form.spinner
Module Contents
enum class BUTTONSTYPE
enum class FORCETYPE
open class Spinner : SimplePanel, NumberFormControl
Module Contents
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)
var autofocus: Boolean?
var buttonsType: BUTTONSTYPE
var decimals: Int
open var disabled: Boolean
val flabel: FieldLabel
var forceType: FORCETYPE
protected open fun getSnClass(): List<StringBoolPair>
open fun getValueAsString(): String?
protected val idc: String
val input: SpinnerInput
var label: String?
var max: Int
var min: Int
var name: String?
var placeholder: String?
var readonly: Boolean?
open fun removeEventListeners(): Widget
var rich: Boolean
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
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
open var value: Number?
open class SpinnerInput : Widget
Module Contents
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())
protected open fun afterDestroy(): Unit
protected open fun afterInsert(node: VNode): Unit
var autofocus: Boolean?
var buttonsType: BUTTONSTYPE
protected open fun changeValue(): Unit
var decimals: Int
var disabled: Boolean
var forceType: FORCETYPE
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
fun getValueAsString(): String?
var max: Int
var min: Int
var name: String?
var placeholder: String?
var readonly: Boolean?
protected open fun render(): VNode
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?
package pl.treksoft.kvision.form.text
package pl.treksoft.kvision.form.time
package pl.treksoft.kvision.hmr
package pl.treksoft.kvision.html
Module Contents
enum class ALIGN
enum class BUTTONSIZE
enum class BUTTONSTYLE
open class Button : Widget
enum class IMAGESHAPE
open class Image : Widget
Module Contents
Image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: IMAGESHAPE? = null, centered: Boolean = false, classes: Set<String> = setOf())
var alt: String?
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?
var src: ResString
enum class LISTTYPE
open class Label : Tag
open class Link : SimplePanel
open class ListTag : SimplePanel
enum class TAG
open class Tag : SimplePanel
Module Contents
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
package pl.treksoft.kvision.modal
Module Contents
open class Alert : Modal
Module Contents
Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, callback: () -> Unit = null)
var align: ALIGN?
open fun hide(): Widget
var rich: Boolean
fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, callback: () -> Unit = null): Unit
var text: String?
open class CloseIcon : Widget
open class Confirm : Modal
Module Contents
Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null)
var align: ALIGN?
var cancelVisible: Boolean
var rich: Boolean
fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: ALIGN? = null, size: MODALSIZE? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit
var text: String?
enum class MODALSIZE
open class Modal : SimplePanel
package pl.treksoft.kvision.panel
Module Contents
enum class DIRECTION
open class DockPanel : SimplePanel
enum class FLEXALIGNCONTENT
enum class FLEXALIGNITEMS
enum class FLEXDIR
enum class FLEXJUSTIFY
enum class FLEXWRAP
open class FlexPanel : SimplePanel
Module Contents
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
var alignContent: FLEXALIGNCONTENT?
var alignItems: FLEXALIGNITEMS?
var direction: FLEXDIR?
protected open fun getSnStyle(): List<StringPair>
var justify: FLEXJUSTIFY?
open fun remove(child: Component): FlexPanel
open fun removeAll(): FlexPanel
var spacing: Int?
var wrap: FLEXWRAP?
enum class GRIDALIGN
enum class GRIDALIGNCONTENT
enum class GRIDFLOW
enum class GRIDJUSTIFY
enum class GRIDJUSTIFYCONTENT
enum class GRIDSIZE
open class GridPanel : SimplePanel
Module Contents
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
var alignContent: GRIDALIGNCONTENT?
var alignItems: GRIDALIGN?
var autoColumns: String?
var autoFlow: GRIDFLOW?
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
open fun removeAll(): GridPanel
var rowGap: Int?
var templateAreas: List<String>?
var templateColumns: String?
var templateRows: String?
class GridWrapper : WidgetWrapper
open class HPanel : FlexPanel
Module Contents
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
open class ResponsiveGridPanel : SimplePanel
Module Contents
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
class Root : SimplePanel
enum class SIDE
open class SimplePanel : Widget, Container
open class SplitPanel : SimplePanel
open class StackPanel : SimplePanel
open class TabPanel : SimplePanel
open class VPanel : FlexPanel
package pl.treksoft.kvision.routing
package pl.treksoft.kvision.utils