kvision
Module Contents
alltypes
Module Contents
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?
enum class Align
interface ApplicationBase
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: Col, 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
enum class BgAttach
enum class BgClip
enum class BgOrigin
enum class BgRepeat
enum class BgSize
interface BoolFormControl : FormControl
class Border
enum class BorderStyle
open class Button : Widget
enum class ButtonSize
enum class ButtonStyle
enum class ButtonsType
open class CheckBox : SimplePanel, BoolFormControl
enum class CheckBoxStyle
open class CheckInput : Widget
enum class CheckInputType
open class CloseIcon : Widget
enum class Col
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 DD
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): DataContainer<M, C>
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
enum class DataType
interface DataUpdatable
interface DateFormControl : FormControl
open class DateTime : SimplePanel, DateFormControl
open class DateTimeInput : Widget
enum class Direction
open class Div : Tag
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): DropDown
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?
open class FieldLabel : Tag
enum class FlexAlignContent
enum class FlexAlignItems
enum class FlexDir
enum class FlexJustify
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?
fun Container.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): FlexPanel
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 FlexWrap
enum class ForceType
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 FormType
enum class GridAlign
enum class GridAlignContent
enum class GridFlow
enum class GridJustify
enum class GridJustifyContent
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): GridPanel
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?
enum class GridSize
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): HPanel
open class HelpBlock : Tag
external interface Hot
enum class HttpType
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): Image
protected open fun render(): VNode
var responsive: Boolean
var shape: ImageShape?
var src: ResString
enum class ImageShape
enum class InputSize
class KvEvent : CustomEvent
open class Label : Tag
open class Link : SimplePanel
open class ListTag : SimplePanel
enum class ListType
open class Modal : SimplePanel
enum class ModalSize
external interface Module
interface NumberFormControl : FormControl
external class Object
enum class Overflow
open class Password : Text
enum class Position
open class Radio : SimplePanel, BoolFormControl
open class RadioGroup : SimplePanel, StringFormControl
enum class RadioStyle
typealias ResString = String
enum class Resize
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): ResponsiveGridPanel
open class RichText : AbstractText
open class RichTextInput : AbstractTextInput
class Root : SimplePanel
open class Routing
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): Select
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
enum class SelectWidthType
enum class Side
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): Spinner
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): SpinnerInput
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
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): Tag
var text: String?
var type: TAG
open class Text : AbstractText
open class TextArea : AbstractText
open class TextAreaInput : AbstractTextInput
open class TextInput : AbstractTextInput
enum class TextInputType
enum class UNIT
open class VPanel : FlexPanel
open class Widget : StyledComponent
open class WidgetWrapper : Widget
open class Window : SimplePanel
Module Contents
Window(caption: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
protected open fun afterCreate(node: VNode): Unit
protected open fun afterDestroy(): Unit
var caption: String?
var closeButton: Boolean
var contentHeight: CssSize?
var contentWidth: CssSize?
open fun focus(): Unit
open fun getChildren(): List<Component>
var isDraggable: Boolean
var isResizable: Boolean
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
open fun toFront(): Unit
fun Container.window(caption: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null): Window
kotlin.Int
kotlin.Pair
kotlin.String
kotlin.collections.Map
kotlin.js.Date
package pl.treksoft.kvision.core
Module Contents
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: Col, 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)
enum class BgAttach
enum class BgClip
enum class BgOrigin
enum class BgRepeat
enum class BgSize
class Border
enum class BorderStyle
enum class Col
class Color
interface Component
interface Container : Component
typealias CssSize = Pair<Int, UNIT>
enum class Overflow
enum class Position
typealias ResString = String
enum class Resize
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): DataContainer<M, C>
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): DropDown
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
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?
enum class FormType
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
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): Select
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
enum class SelectWidthType
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): Spinner
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): SpinnerInput
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
open class Button : Widget
enum class ButtonSize
enum class ButtonStyle
open class Div : Tag
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): Image
protected open fun render(): VNode
var responsive: Boolean
var shape: ImageShape?
var src: ResString
enum class ImageShape
open class Label : Tag
open class Link : SimplePanel
open class ListTag : SimplePanel
enum class ListType
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): Tag
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?
open class Modal : SimplePanel
enum class ModalSize
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
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?
fun Container.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): FlexPanel
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 FlexWrap
enum class GridAlign
enum class GridAlignContent
enum class GridFlow
enum class GridJustify
enum class GridJustifyContent
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): GridPanel
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?
enum class GridSize
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): HPanel
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): ResponsiveGridPanel
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
package pl.treksoft.kvision.window
Module Contents
open class Window : SimplePanel
Module Contents
Window(caption: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
protected open fun afterCreate(node: VNode): Unit
protected open fun afterDestroy(): Unit
var caption: String?
var closeButton: Boolean
var contentHeight: CssSize?
var contentWidth: CssSize?
open fun focus(): Unit
open fun getChildren(): List<Component>
var isDraggable: Boolean
var isResizable: Boolean
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
open fun toFront(): Unit
fun Container.window(caption: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null): Window