kvision
Module Contents
alltypes
Module Contents
abstract class AbstractText : SimplePanel, StringFormControl
abstract class AbstractTextInput : Widget, FormInput
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
Module Contents
Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf())
var block: Boolean
fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Button
var disabled: Boolean
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
var icon: String?
var image: ResString?
open fun onClick(handler: Button.(MouseEvent) -> Unit): Button
protected open fun render(): VNode
var size: ButtonSize?
var style: ButtonStyle
var text: String
var type: ButtonType
open class ButtonGroup : SimplePanel
enum class ButtonGroupSize
enum class ButtonGroupStyle
enum class ButtonSize
enum class ButtonStyle
enum class ButtonType
enum class ButtonsType
open class Cell : Tag
open class CheckBox : SimplePanel, BoolFormControl
enum class CheckBoxStyle
open class CheckInput : Widget, FormInput
enum class CheckInputType
enum class Clear
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
open class ContextMenu : ListTag
typealias CssSize = Pair<Int, UNIT>
enum class DD
interface DataComponent
class DataContainer<M, C : Component> : Widget, Container, DataUpdatable
Module Contents
DataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: 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, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: 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, FormInput
enum class Direction
enum class Direction
enum class Display
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, forNavbar: 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, forNavbar: Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
var dropup: Boolean
val forNavbar: 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
protected open fun render(): VNode
var size: ButtonSize?
var style: ButtonStyle
var text: String
open fun toggle(): Unit
open var width: CssSize?
open class FieldLabel : Tag
interface FilesFormControl : FormControl
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 FontStyle
enum class FontVariant
enum class FontWeight
enum class ForceType
class Form<K>
Module Contents
Form(panel: FormPanel<K>? = null, modelFactory: (Map<String, Any?>) -> K)
fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun clearData(): Unit
operator fun get(key: KProperty1<K, *>): Any?
fun getControl(key: KProperty1<K, *>): FormControl?
fun getData(): K
fun getDataJson(): Json
fun remove(key: KProperty1<K, *>): Form<K>
fun removeAll(): Form<K>
fun setData(model: K): Unit
fun validate(): Boolean
interface FormControl : Component
enum class FormEnctype
interface FormInput : Component
enum class FormMethod
open class FormPanel<K> : SimplePanel
Module Contents
FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K)
var action: String?
open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
var autocomplete: Boolean?
open fun clearData(): Unit
var enctype: FormEnctype?
fun <K> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K>
operator fun get(key: KProperty1<K, *>): Any?
open fun getControl(key: KProperty1<K, *>): FormControl?
open fun getData(): K
open fun getDataJson(): Json
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
var method: FormMethod?
var name: String?
var novalidate: Boolean?
open fun remove(key: KProperty1<K, *>): FormPanel<K>
open fun removeAll(): FormPanel<K>
protected open fun render(): VNode
open fun setData(model: K): Unit
var target: FormTarget?
open fun validate(): Boolean
var validator: (Form<K>) -> Boolean?
var validatorMessage: (Form<K>) -> String?
enum class FormTarget
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 Header : Tag
open class HeaderCell : Tag
open class HelpBlock : Tag
external interface Hot
enum class HttpType
open class Icon : Tag
open class Iframe : Widget
Module Contents
Iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf())
protected open fun getSnAttrs(): List<StringPair>
fun Container.iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf(), init: Iframe.() -> Unit = null): Iframe
var iframeHeight: Int?
var iframeWidth: Int?
var location: String?
var name: String?
protected open fun render(): VNode
var sandbox: Set<Sandbox>?
var src: String?
var srcdoc: String?
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
Module Contents
Link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf())
protected open fun getSnAttrs(): List<StringPair>
var icon: String?
var image: ResString?
var label: String
fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun ListTag.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun DropDown.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
protected open fun render(): VNode
var url: String?
open class ListTag : SimplePanel
enum class ListType
open class Modal : SimplePanel
enum class ModalSize
external interface Module
open class Nav : Tag
open class NavForm : Tag
open class Navbar : SimplePanel
enum class NavbarType
interface NumberFormControl : FormControl
external class Object
enum class Overflow
open class Password : Text
enum class PosFloat
enum class Position
open class ProgressBar : SimplePanel
Module Contents
ProgressBar(progress: Int, min: Int = DEFAULT_MIN, max: Int = DEFAULT_MAX, style: ProgressBarStyle? = null, striped: Boolean = false, animated: Boolean = false, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: ProgressBar.() -> Unit = null)
var animated: Boolean
var max: Int
var min: Int
var progress: Int
fun Container.progressBar(progress: Int, min: Int = DEFAULT_MIN, max: Int = DEFAULT_MAX, style: ProgressBarStyle? = null, striped: Boolean = false, animated: Boolean = false, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: ProgressBar.() -> Unit = null): ProgressBar
var striped: Boolean
var style: ProgressBarStyle?
enum class ProgressBarStyle
open class Radio : SimplePanel, BoolFormControl
open class RadioGroup : SimplePanel, StringFormControl
Module Contents
RadioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false)
open fun blur(): Unit
open var disabled: Boolean
val flabel: FieldLabel
open fun focus(): Unit
protected open fun getSnClass(): List<StringBoolPair>
var inline: Boolean
val input: CheckInput
var label: String?
open var name: String?
var options: List<StringPair>?
fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit = null): RadioGroup
var rich: Boolean
open var size: InputSize?
val validationInfo: HelpBlock
open var value: String?
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 Row : Tag
enum class Sandbox
open class Select : SimplePanel, StringFormControl
Module Contents
Select(options: List<StringPair>? = null, value: String? = null, name: 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 fun blur(): Unit
var emptyOption: Boolean
val flabel: FieldLabel
open fun focus(): Unit
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 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, name: 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
var style: ButtonStyle?
open fun toggleOptions(): Unit
val validationInfo: HelpBlock
open var value: String?
open class SelectInput : SimplePanel, FormInput
open class SelectOptGroup : SimplePanel
open class SelectOption : Widget
enum class SelectWidthType
open class Separator : Tag
enum class Side
open class SimplePanel : Widget, Container
open class Spinner : SimplePanel, NumberFormControl
Module Contents
Spinner(value: Number? = null, name: String? = 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?
open fun blur(): Unit
var buttonsType: ButtonsType
var decimals: Int
val flabel: FieldLabel
open fun focus(): Unit
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 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 fun spinDown(): Spinner
open fun spinUp(): Spinner
fun Container.spinner(value: Number? = null, name: String? = 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, FormInput
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?
open fun blur(): Unit
var buttonsType: ButtonsType
protected open fun changeValue(): Unit
var decimals: Int
open var disabled: Boolean
open fun focus(): Unit
var forceType: ForceType
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
fun getValueAsString(): String?
var max: Int
var min: Int
open var name: String?
var placeholder: String?
var readonly: Boolean?
protected open fun render(): VNode
open 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 Table : SimplePanel
Module Contents
Table(: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
fun addHeaderCell(: HeaderCell): Table
var caption: String?
protected open fun childrenVNodes(): Array<VNode>
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
var headerNames: List<String>?
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
fun removeHeaderCell(: HeaderCell): Table
fun removeHeaderCells(): Table
protected open fun render(): VNode
var responsive: Boolean
fun Container.table(: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null): Table
var types: Set<TableType>
enum class TableType
open class Tag : SimplePanel, Template
Module Contents
Tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null)
var align: Align?
open var content: String?
protected open fun getSnClass(): List<StringBoolPair>
protected open fun render(): VNode
open var rich: Boolean
fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Tag
open var template: (Any?) -> String
var type: TAG
interface Template
open class Text : AbstractText
enum class TextAlign
open class TextArea : AbstractText
Module Contents
TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
var cols: Int?
val input: TextAreaInput
var rows: Int?
fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TextArea.() -> Unit = null): TextArea
var wrapHard: Boolean
open class TextAreaInput : AbstractTextInput
class TextDecoration
enum class TextDecorationLine
enum class TextDecorationStyle
open class TextInput : AbstractTextInput
enum class TextInputType
enum class TextOverflow
class TextShadow
enum class TextTransform
open class Toolbar : SimplePanel
enum class UNIT
enum class UnicodeBidi
open class Upload : SimplePanel, FilesFormControl
open class UploadInput : Widget, FormInput
open class VPanel : FlexPanel
enum class VerticalAlign
enum class WhiteSpace
open class Widget : StyledComponent
open class WidgetWrapper : SimplePanel
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 contentOverflow: Overflow?
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
kotlin.js.Json
org.w3c.files.File
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 Clear
enum class Col
class Color
interface Component
interface Container : Component
typealias CssSize = Pair<Int, UNIT>
enum class Direction
enum class Display
enum class FontStyle
enum class FontVariant
enum class FontWeight
enum class Overflow
enum class PosFloat
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 TextAlign
class TextDecoration
enum class TextDecorationLine
enum class TextDecorationStyle
enum class TextOverflow
class TextShadow
enum class TextTransform
enum class UNIT
enum class UnicodeBidi
enum class VerticalAlign
enum class WhiteSpace
open class Widget : StyledComponent
open class WidgetWrapper : SimplePanel
package pl.treksoft.kvision.data
Module Contents
abstract class BaseDataComponent : DataComponent
interface DataComponent
class DataContainer<M, C : Component> : Widget, Container, DataUpdatable
Module Contents
DataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: 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, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: 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
open class ContextMenu : ListTag
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, forNavbar: 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, forNavbar: Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
var dropup: Boolean
val forNavbar: 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
protected open fun render(): VNode
var size: ButtonSize?
var style: ButtonStyle
var text: String
open fun toggle(): Unit
open var width: CssSize?
open class Header : Tag
open class Separator : Tag
package pl.treksoft.kvision.form
Module Contents
interface BoolFormControl : FormControl
interface DateFormControl : FormControl
open class FieldLabel : Tag
interface FilesFormControl : FormControl
class Form<K>
Module Contents
Form(panel: FormPanel<K>? = null, modelFactory: (Map<String, Any?>) -> K)
fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun clearData(): Unit
operator fun get(key: KProperty1<K, *>): Any?
fun getControl(key: KProperty1<K, *>): FormControl?
fun getData(): K
fun getDataJson(): Json
fun remove(key: KProperty1<K, *>): Form<K>
fun removeAll(): Form<K>
fun setData(model: K): Unit
fun validate(): Boolean
interface FormControl : Component
enum class FormEnctype
interface FormInput : Component
enum class FormMethod
open class FormPanel<K> : SimplePanel
Module Contents
FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K)
var action: String?
open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
open fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
var autocomplete: Boolean?
open fun clearData(): Unit
var enctype: FormEnctype?
fun <K> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K>
operator fun get(key: KProperty1<K, *>): Any?
open fun getControl(key: KProperty1<K, *>): FormControl?
open fun getData(): K
open fun getDataJson(): Json
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
var method: FormMethod?
var name: String?
var novalidate: Boolean?
open fun remove(key: KProperty1<K, *>): FormPanel<K>
open fun removeAll(): FormPanel<K>
protected open fun render(): VNode
open fun setData(model: K): Unit
var target: FormTarget?
open fun validate(): Boolean
var validator: (Form<K>) -> Boolean?
var validatorMessage: (Form<K>) -> String?
enum class FormTarget
enum class FormType
open class HelpBlock : Tag
enum class InputSize
interface NumberFormControl : FormControl
interface StringFormControl : FormControl
kotlin.collections.Map
kotlin.js.Json
package pl.treksoft.kvision.form.check
Module Contents
open class CheckBox : SimplePanel, BoolFormControl
enum class CheckBoxStyle
open class CheckInput : Widget, FormInput
enum class CheckInputType
open class Radio : SimplePanel, BoolFormControl
open class RadioGroup : SimplePanel, StringFormControl
Module Contents
RadioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false)
open fun blur(): Unit
open var disabled: Boolean
val flabel: FieldLabel
open fun focus(): Unit
protected open fun getSnClass(): List<StringBoolPair>
var inline: Boolean
val input: CheckInput
var label: String?
open var name: String?
var options: List<StringPair>?
fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit = null): RadioGroup
var rich: Boolean
open var size: InputSize?
val validationInfo: HelpBlock
open var value: String?
enum class RadioStyle
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, name: 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 fun blur(): Unit
var emptyOption: Boolean
val flabel: FieldLabel
open fun focus(): Unit
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 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, name: 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
var style: ButtonStyle?
open fun toggleOptions(): Unit
val validationInfo: HelpBlock
open var value: String?
open class SelectInput : SimplePanel, FormInput
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, name: String? = 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?
open fun blur(): Unit
var buttonsType: ButtonsType
var decimals: Int
val flabel: FieldLabel
open fun focus(): Unit
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 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 fun spinDown(): Spinner
open fun spinUp(): Spinner
fun Container.spinner(value: Number? = null, name: String? = 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, FormInput
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?
open fun blur(): Unit
var buttonsType: ButtonsType
protected open fun changeValue(): Unit
var decimals: Int
open var disabled: Boolean
open fun focus(): Unit
var forceType: ForceType
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
fun getValueAsString(): String?
var max: Int
var min: Int
open var name: String?
var placeholder: String?
var readonly: Boolean?
protected open fun render(): VNode
open 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
Module Contents
abstract class AbstractText : SimplePanel, StringFormControl
abstract class AbstractTextInput : Widget, FormInput
open class Password : Text
open class RichText : AbstractText
open class RichTextInput : AbstractTextInput
open class Text : AbstractText
open class TextArea : AbstractText
Module Contents
TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
var cols: Int?
val input: TextAreaInput
var rows: Int?
fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TextArea.() -> Unit = null): TextArea
var wrapHard: Boolean
open class TextAreaInput : AbstractTextInput
open class TextInput : AbstractTextInput
enum class TextInputType
package pl.treksoft.kvision.form.time
package pl.treksoft.kvision.form.upload
package pl.treksoft.kvision.hmr
package pl.treksoft.kvision.html
Module Contents
enum class Align
open class Button : Widget
Module Contents
Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf())
var block: Boolean
fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Button
var disabled: Boolean
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
var icon: String?
var image: ResString?
open fun onClick(handler: Button.(MouseEvent) -> Unit): Button
protected open fun render(): VNode
var size: ButtonSize?
var style: ButtonStyle
var text: String
var type: ButtonType
enum class ButtonSize
enum class ButtonStyle
enum class ButtonType
open class Div : Tag
open class Icon : Tag
open class Iframe : Widget
Module Contents
Iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf())
protected open fun getSnAttrs(): List<StringPair>
fun Container.iframe(src: String? = null, srcdoc: String? = null, name: String? = null, iframeWidth: Int? = null, iframeHeight: Int? = null, sandbox: Set<Sandbox>? = null, classes: Set<String> = setOf(), init: Iframe.() -> Unit = null): Iframe
var iframeHeight: Int?
var iframeWidth: Int?
var location: String?
var name: String?
protected open fun render(): VNode
var sandbox: Set<Sandbox>?
var src: String?
var srcdoc: String?
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
Module Contents
Link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf())
protected open fun getSnAttrs(): List<StringPair>
var icon: String?
var image: ResString?
var label: String
fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun ListTag.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
fun DropDown.linkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: Link.() -> Unit = null): Link
protected open fun render(): VNode
var url: String?
open class ListTag : SimplePanel
enum class ListType
enum class Sandbox
enum class TAG
open class Tag : SimplePanel, Template
Module Contents
Tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null)
var align: Align?
open var content: String?
protected open fun getSnClass(): List<StringBoolPair>
protected open fun render(): VNode
open var rich: Boolean
fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Tag
open var template: (Any?) -> String
var type: TAG
interface Template
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.navbar
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.progress
Module Contents
open class ProgressBar : SimplePanel
Module Contents
ProgressBar(progress: Int, min: Int = DEFAULT_MIN, max: Int = DEFAULT_MAX, style: ProgressBarStyle? = null, striped: Boolean = false, animated: Boolean = false, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: ProgressBar.() -> Unit = null)
var animated: Boolean
var max: Int
var min: Int
var progress: Int
fun Container.progressBar(progress: Int, min: Int = DEFAULT_MIN, max: Int = DEFAULT_MAX, style: ProgressBarStyle? = null, striped: Boolean = false, animated: Boolean = false, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: ProgressBar.() -> Unit = null): ProgressBar
var striped: Boolean
var style: ProgressBarStyle?
enum class ProgressBarStyle
package pl.treksoft.kvision.routing
package pl.treksoft.kvision.table
Module Contents
open class Cell : Tag
open class HeaderCell : Tag
open class Row : Tag
open class Table : SimplePanel
Module Contents
Table(: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null)
open fun add(child: Component): SimplePanel
open fun addAll(children: List<Component>): SimplePanel
fun addHeaderCell(: HeaderCell): Table
var caption: String?
protected open fun childrenVNodes(): Array<VNode>
open fun getChildren(): List<Component>
protected open fun getSnClass(): List<StringBoolPair>
var headerNames: List<String>?
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
fun removeHeaderCell(: HeaderCell): Table
fun removeHeaderCells(): Table
protected open fun render(): VNode
var responsive: Boolean
fun Container.table(: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null): Table
var types: Set<TableType>
enum class TableType
package pl.treksoft.kvision.toolbar
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 contentOverflow: Overflow?
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