From 6ce402754e01940fc641f8814eae03599a622b1c Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 9 Feb 2020 14:23:52 +0100 Subject: API documentation for KVision 2.10.0 --- .../-range-input/-init-.html | 27 + .../-range-input/after-insert.html | 16 + .../-range-input/autofocus.html | 21 + .../-range-input/blur.html | 16 + .../-range-input/disabled.html | 22 + .../-range-input/focus.html | 16 + .../-range-input/get-sn-attrs.html | 18 + .../-range-input/get-sn-class.html | 18 + .../-range-input/get-value-as-string.html | 17 + .../-range-input/index.html | 806 +++++++++++++ .../-range-input/max.html | 21 + .../-range-input/min.html | 21 + .../-range-input/name.html | 22 + .../-range-input/readonly.html | 21 + .../-range-input/render.html | 18 + .../-range-input/size.html | 22 + .../-range-input/start-value.html | 27 + .../-range-input/step-down.html | 15 + .../-range-input/step-up.html | 15 + .../-range-input/step.html | 21 + .../-range-input/validation-status.html | 22 + .../-range-input/value.html | 21 + .../-range/-init-.html | 31 + .../-range/autofocus.html | 15 + .../-range/blur.html | 16 + .../-range/flabel.html | 16 + .../-range/focus.html | 16 + .../-range/get-sn-class.html | 18 + .../-range/get-value-as-string.html | 16 + api/pl.treksoft.kvision.form.range/-range/idc.html | 14 + .../-range/index.html | 1203 ++++++++++++++++++++ .../-range/input.html | 16 + .../-range/invalid-feedback.html | 16 + .../-range/label.html | 15 + api/pl.treksoft.kvision.form.range/-range/max.html | 15 + api/pl.treksoft.kvision.form.range/-range/min.html | 15 + .../-range/readonly.html | 15 + .../-range/remove-event-listeners.html | 18 + .../-range/rich.html | 15 + .../-range/set-event-listener.html | 57 + .../-range/start-value.html | 17 + .../-range/step-down.html | 15 + .../-range/step-up.html | 15 + .../-range/step.html | 15 + .../-range/style-for-horizontal-form-panel.html | 16 + .../-range/validator-error.html | 16 + .../-range/value.html | 16 + api/pl.treksoft.kvision.form.range/index.html | 58 + .../range-input.html | 16 + api/pl.treksoft.kvision.form.range/range.html | 16 + 50 files changed, 2950 insertions(+) create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/after-insert.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/autofocus.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/blur.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/disabled.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/focus.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/get-sn-attrs.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/get-sn-class.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/get-value-as-string.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/index.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/max.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/min.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/name.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/readonly.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/render.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/size.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/start-value.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/step-down.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/step-up.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/step.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/validation-status.html create mode 100644 api/pl.treksoft.kvision.form.range/-range-input/value.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/-init-.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/autofocus.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/blur.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/flabel.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/focus.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/get-sn-class.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/get-value-as-string.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/idc.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/index.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/input.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/invalid-feedback.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/label.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/max.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/min.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/readonly.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/remove-event-listeners.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/rich.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/set-event-listener.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/start-value.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/step-down.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/step-up.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/step.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/style-for-horizontal-form-panel.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/validator-error.html create mode 100644 api/pl.treksoft.kvision.form.range/-range/value.html create mode 100644 api/pl.treksoft.kvision.form.range/index.html create mode 100644 api/pl.treksoft.kvision.form.range/range-input.html create mode 100644 api/pl.treksoft.kvision.form.range/range.html (limited to 'api/pl.treksoft.kvision.form.range') diff --git a/api/pl.treksoft.kvision.form.range/-range-input/-init-.html b/api/pl.treksoft.kvision.form.range/-range-input/-init-.html new file mode 100644 index 00000000..ba3f9885 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/-init-.html @@ -0,0 +1,27 @@ + + + +RangeInput.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / <init>
+
+

<init>

+ +RangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, classes: Set<String> = setOf()) +

Parameters

+

+value - range input value

+

+min - minimal value (default 0)

+

+max - maximal value (default 100)

+

+step - step value (default 1)

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/after-insert.html b/api/pl.treksoft.kvision.form.range/-range-input/after-insert.html new file mode 100644 index 00000000..81e12440 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/after-insert.html @@ -0,0 +1,16 @@ + + + +RangeInput.afterInsert - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / afterInsert
+
+

afterInsert

+ +protected open fun afterInsert(node: VNode): Unit +

Overrides Widget.afterInsert

+

Method called after inserting Snabbdom vnode into the DOM.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/autofocus.html b/api/pl.treksoft.kvision.form.range/-range-input/autofocus.html new file mode 100644 index 00000000..e2b3f969 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/autofocus.html @@ -0,0 +1,21 @@ + + + +RangeInput.autofocus - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / autofocus
+
+

autofocus

+ +var autofocus: Boolean? +

Determines if the range input is automatically focused.

+

Getter
+

Determines if the range input is automatically focused.

+

+

Setter
+

Determines if the range input is automatically focused.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/blur.html b/api/pl.treksoft.kvision.form.range/-range-input/blur.html new file mode 100644 index 00000000..161b5d56 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/blur.html @@ -0,0 +1,16 @@ + + + +RangeInput.blur - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / blur
+
+

blur

+ +open fun blur(): Unit +

Overrides FormInput.blur

+

Makes the input element blur.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/disabled.html b/api/pl.treksoft.kvision.form.range/-range-input/disabled.html new file mode 100644 index 00000000..5e9cefdd --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/disabled.html @@ -0,0 +1,22 @@ + + + +RangeInput.disabled - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / disabled
+
+

disabled

+ +open var disabled: Boolean +

Overrides FormInput.disabled

+

Determines if the field is disabled.

+

Getter
+

Determines if the field is disabled.

+

+

Setter
+

Determines if the field is disabled.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/focus.html b/api/pl.treksoft.kvision.form.range/-range-input/focus.html new file mode 100644 index 00000000..bbf19665 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/focus.html @@ -0,0 +1,16 @@ + + + +RangeInput.focus - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / focus
+
+

focus

+ +open fun focus(): Unit +

Overrides FormInput.focus

+

Makes the input element focused.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.range/-range-input/get-sn-attrs.html new file mode 100644 index 00000000..c39bab95 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +RangeInput.getSnAttrs - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / getSnAttrs
+
+

getSnAttrs

+ +protected open fun getSnAttrs(): List<StringPair> +

Overrides Widget.getSnAttrs

+

Returns list of element attributes in the form of a List.

+

Return
+list of element attributes

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/get-sn-class.html b/api/pl.treksoft.kvision.form.range/-range-input/get-sn-class.html new file mode 100644 index 00000000..3c2bf93a --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/get-sn-class.html @@ -0,0 +1,18 @@ + + + +RangeInput.getSnClass - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / getSnClass
+
+

getSnClass

+ +protected open fun getSnClass(): List<StringBoolPair> +

Overrides Widget.getSnClass

+

Returns list of CSS class names for current widget in the form of a List.

+

Return
+list of CSS class names

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/get-value-as-string.html b/api/pl.treksoft.kvision.form.range/-range-input/get-value-as-string.html new file mode 100644 index 00000000..71fbbe2a --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/get-value-as-string.html @@ -0,0 +1,17 @@ + + + +RangeInput.getValueAsString - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / getValueAsString
+
+

getValueAsString

+ +fun getValueAsString(): String? +

Returns the value of the spinner as a String.

+

Return
+value as a String

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/index.html b/api/pl.treksoft.kvision.form.range/-range-input/index.html new file mode 100644 index 00000000..fc47520a --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/index.html @@ -0,0 +1,806 @@ + + + +RangeInput - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput
+
+

RangeInput

+open class RangeInput : Widget, FormInput +

Range input component.

+

Constructors

+ + + + + + + +
+

<init>

+
+RangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, classes: Set<String> = setOf())
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the range input is automatically focused.

+
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

max

+
+var max: Number +

Maximal value.

+
+

min

+
+var min: Number +

Minimal value.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the range input is read-only.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: Number? +

The value attribute of the generated HTML input element.

+
+

step

+
+var step: Number +

Step value.

+
+

validationStatus

+
+open var validationStatus: ValidationStatus? +

The validation status of the input.

+
+

value

+
+var value: Number? +

Range input value.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

draggable

+
+var draggable: Boolean? +

Determines if the current widget is draggable.

+
+

eventTarget

+
+var eventTarget: Widget?
+

id

+
+var id: String? +

An ID attribute of generated HTML element.

+
+

lastLanguage

+
+var lastLanguage: String?
+

parent

+
+open var parent: Container? +

Parent of the current component.

+
+

popoverOptions

+
+var popoverOptions: PopoverOptions?
+

role

+
+var role: String? +

A role attribute of generated HTML element.

+
+

surroundingSpan

+
+var surroundingSpan: Boolean
+

tabindex

+
+var tabindex: Int? +

A tabindex attribute of generated HTML element.

+
+

title

+
+var title: String? +

A title attribute of generated HTML element.

+
+

tooltipOptions

+
+var tooltipOptions: TooltipOptions?
+

visible

+
+open var visible: Boolean +

Visibility state of the current component.

+
+

vnode

+
+var vnode: VNode?
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

getValueAsString

+
+fun getValueAsString(): String? +

Returns the value of the spinner as a String.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

stepDown

+
+open fun stepDown(): RangeInput +

Change value in minus.

+
+

stepUp

+
+open fun stepUp(): RangeInput +

Change value in plus.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addCssClass

+
+open fun addCssClass(css: String): Widget +

Adds given value to the set of CSS classes generated in html code of current component.

+
+

addCssStyle

+
+open fun addCssStyle(css: Style): Widget +

Adds given style object to the set of CSS classes generated in html code of current component.

+
+

addSurroundingCssClass

+
+open fun addSurroundingCssClass(css: String): Widget +

Adds given value to the set of CSS classes generated in html code of parent component.

+
+

addSurroundingCssStyle

+
+open fun addSurroundingCssStyle(css: Style): Widget +

Adds given style object to the set of CSS classes generated in html code of parent component.

+
+

afterCreate

+
+open fun afterCreate(node: VNode): Unit +

Method called after creating Snabbdom vnode.

+
+

afterDestroy

+
+open fun afterDestroy(): Unit +

Method called after destroying Snabbdom vnode.

+
+

clearDragDropData

+
+open fun clearDragDropData(): Unit +

Clears D&D data for the current widget. It also makes it not draggable.

+
+

disablePopover

+
+open fun disablePopover(): Widget +

Disables popover for the current widget.

+
+

disableTooltip

+
+open fun disableTooltip(): Widget +

Disables tooltip for the current widget.

+
+

dispatchEvent

+
+open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?
+

enablePopover

+
+open fun enablePopover(options: PopoverOptions = PopoverOptions()): Widget +

Enables popover for the current widget.

+
+

enableTooltip

+
+open fun enableTooltip(options: TooltipOptions = TooltipOptions()): Widget +

Enables tooltip for the current widget.

+
+

getAttribute

+
+open fun getAttribute(name: String): String? +

Returns the value of an additional attribute.

+
+

getElement

+
+open fun getElement(): Node? +

Returns DOM element bound to the current component.

+
+

getElementJQuery

+
+open fun getElementJQuery(): JQuery? +

Returns JQuery element bound to the current component.

+
+

getElementJQueryD

+
+open fun getElementJQueryD(): dynamic +

Returns JQuery element bound to the current component as a dynamic type.

+
+

getSnHooks

+
+open fun getSnHooks(): Hooks? +

Returns list of hooks in the form of a Snabbdom Hooks object.

+
+

getSnOn

+
+open fun getSnOn(): On? +

Returns list of event handlers in the form of a Snabbdom On object.

+
+

hide

+
+open fun hide(): Widget +

Makes current widget invisible.

+
+

hidePopover

+
+open fun hidePopover(): Widget +

Hides popover for the current widget.

+
+

hideTooltip

+
+open fun hideTooltip(): Widget +

Hides tooltip for the current widget.

+
+

refreshOnUpdate

+
+fun <T> refreshOnUpdate(refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T>
+fun <T> refreshOnUpdate(initialValue: T, refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T>
+

removeAttribute

+
+open fun removeAttribute(name: String): Widget +

Removes the value of additional attribute.

+
+

removeCssClass

+
+open fun removeCssClass(css: String): Widget +

Removes given value from the set of CSS classes generated in html code of current component.

+
+

removeCssStyle

+
+open fun removeCssStyle(css: Style): Widget +

Removes given style object from the set of CSS classes generated in html code of current component.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

removeSurroundingCssClass

+
+open fun removeSurroundingCssClass(css: String): Widget +

Removes given value from the set of CSS classes generated in html code of parent component.

+
+

removeSurroundingCssStyle

+
+open fun removeSurroundingCssStyle(css: Style): Widget +

Removes given style object from the set of CSS classes generated in html code of parent component.

+
+

render

+
+open fun render(elementName: String): VNode
+open fun render(elementName: String, children: Array<dynamic>): VNode +

Renders current component as a Snabbdom vnode.

+
+

setAttribute

+
+open fun setAttribute(name: String, value: String): Widget +

Sets the value of additional attribute.

+
+

setDragDropData

+
+open fun setDragDropData(format: String, data: String): Unit +

Sets D&D data for the current widget. It also makes it draggable.

+
+

setDropTarget

+
+open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit
+open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit +

Sets the current widget as a D&D drop target.

+
+

setDropTargetData

+
+open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit +

Sets the current widget as a D&D drop target with helper callback accepting String data.

+
+

setEventListener

+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget +

Sets an event listener for current widget, keeping the actual type of component.

+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget +

Sets an event listener for current widget.

+
+

show

+
+open fun show(): Widget +

Makes current widget visible.

+
+

showPopover

+
+open fun showPopover(): Widget +

Shows popover for the current widget.

+
+

showTooltip

+
+open fun showTooltip(): Widget +

Shows tooltip for the current widget.

+
+

singleRender

+
+fun <T> singleRender(block: () -> T): T
+

toggleVisible

+
+open fun toggleVisible(): Widget +

Toggles visibility of current widget.

+
+

translate

+
+fun translate(text: String?): String?
+

Extension Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addBsBgColor

+
+fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit
+

addBsBorder

+
+fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit
+

addBsClearfix

+
+fun Component.addBsClearfix(): Unit
+

addBsColor

+
+fun Component.addBsColor(bsColor: BsColor): Unit
+

addBsRounded

+
+fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit
+

contextMenu

+
+fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu +

DSL builder extension function.

+
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+

onEvent

+
+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget
+

removeBsBgColor

+
+fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit
+

removeBsBorder

+
+fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit
+

removeBsClearfix

+
+fun Component.removeBsClearfix(): Unit
+

removeBsColor

+
+fun Component.removeBsColor(bsColor: BsColor): Unit
+

removeBsRounded

+
+fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit
+

setContextMenu

+
+fun Widget.setContextMenu(contextMenu: ContextMenu): Widget +

Sets context menu for the current widget.

+
+

style

+
+fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/max.html b/api/pl.treksoft.kvision.form.range/-range-input/max.html new file mode 100644 index 00000000..7c2ec0fb --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/max.html @@ -0,0 +1,21 @@ + + + +RangeInput.max - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / max
+
+

max

+ +var max: Number +

Maximal value.

+

Getter
+

Maximal value.

+

+

Setter
+

Maximal value.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/min.html b/api/pl.treksoft.kvision.form.range/-range-input/min.html new file mode 100644 index 00000000..3dd21582 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/min.html @@ -0,0 +1,21 @@ + + + +RangeInput.min - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / min
+
+

min

+ +var min: Number +

Minimal value.

+

Getter
+

Minimal value.

+

+

Setter
+

Minimal value.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/name.html b/api/pl.treksoft.kvision.form.range/-range-input/name.html new file mode 100644 index 00000000..de5db781 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/name.html @@ -0,0 +1,22 @@ + + + +RangeInput.name - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / name
+
+

name

+ +open var name: String? +

Overrides FormInput.name

+

The name attribute of the generated HTML input element.

+

Getter
+

The name attribute of the generated HTML input element.

+

+

Setter
+

The name attribute of the generated HTML input element.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/readonly.html b/api/pl.treksoft.kvision.form.range/-range-input/readonly.html new file mode 100644 index 00000000..e5ebc48c --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/readonly.html @@ -0,0 +1,21 @@ + + + +RangeInput.readonly - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / readonly
+
+

readonly

+ +var readonly: Boolean? +

Determines if the range input is read-only.

+

Getter
+

Determines if the range input is read-only.

+

+

Setter
+

Determines if the range input is read-only.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/render.html b/api/pl.treksoft.kvision.form.range/-range-input/render.html new file mode 100644 index 00000000..a3a6aba7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/render.html @@ -0,0 +1,18 @@ + + + +RangeInput.render - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / render
+
+

render

+ +protected open fun render(): VNode +

Overrides Widget.render

+

Renders current component as a Snabbdom vnode.

+

Return
+Snabbdom vnode

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/size.html b/api/pl.treksoft.kvision.form.range/-range-input/size.html new file mode 100644 index 00000000..50625e1a --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/size.html @@ -0,0 +1,22 @@ + + + +RangeInput.size - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / size
+
+

size

+ +open var size: InputSize? +

Overrides FormInput.size

+

The size of the input.

+

Getter
+

The size of the input.

+

+

Setter
+

The size of the input.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/start-value.html b/api/pl.treksoft.kvision.form.range/-range-input/start-value.html new file mode 100644 index 00000000..3c70ba01 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/start-value.html @@ -0,0 +1,27 @@ + + + +RangeInput.startValue - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / startValue
+
+

startValue

+ +var startValue: Number? +

The value attribute of the generated HTML input element.

+

This value is placed directly in generated HTML code, while the value property is dynamically +bound to the range input value.

+

Getter
+

The value attribute of the generated HTML input element.

+

This value is placed directly in generated HTML code, while the value property is dynamically +bound to the range input value.

+

+

Setter
+

The value attribute of the generated HTML input element.

+

This value is placed directly in generated HTML code, while the value property is dynamically +bound to the range input value.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/step-down.html b/api/pl.treksoft.kvision.form.range/-range-input/step-down.html new file mode 100644 index 00000000..3e366e77 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/step-down.html @@ -0,0 +1,15 @@ + + + +RangeInput.stepDown - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / stepDown
+
+

stepDown

+ +open fun stepDown(): RangeInput +

Change value in minus.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/step-up.html b/api/pl.treksoft.kvision.form.range/-range-input/step-up.html new file mode 100644 index 00000000..dbc805b7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/step-up.html @@ -0,0 +1,15 @@ + + + +RangeInput.stepUp - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / stepUp
+
+

stepUp

+ +open fun stepUp(): RangeInput +

Change value in plus.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/step.html b/api/pl.treksoft.kvision.form.range/-range-input/step.html new file mode 100644 index 00000000..fb675f24 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/step.html @@ -0,0 +1,21 @@ + + + +RangeInput.step - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / step
+
+

step

+ +var step: Number +

Step value.

+

Getter
+

Step value.

+

+

Setter
+

Step value.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/validation-status.html b/api/pl.treksoft.kvision.form.range/-range-input/validation-status.html new file mode 100644 index 00000000..3abb58f6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/validation-status.html @@ -0,0 +1,22 @@ + + + +RangeInput.validationStatus - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / validationStatus
+
+

validationStatus

+ +open var validationStatus: ValidationStatus? +

Overrides FormInput.validationStatus

+

The validation status of the input.

+

Getter
+

The validation status of the input.

+

+

Setter
+

The validation status of the input.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range-input/value.html b/api/pl.treksoft.kvision.form.range/-range-input/value.html new file mode 100644 index 00000000..2d983144 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range-input/value.html @@ -0,0 +1,21 @@ + + + +RangeInput.value - kvision + + + +kvision / pl.treksoft.kvision.form.range / RangeInput / value
+
+

value

+ +var value: Number? +

Range input value.

+

Getter
+

Range input value.

+

+

Setter
+

Range input value.

+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/-init-.html b/api/pl.treksoft.kvision.form.range/-range/-init-.html new file mode 100644 index 00000000..6a050b70 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/-init-.html @@ -0,0 +1,31 @@ + + + +Range.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / <init>
+
+

<init>

+ +Range(value: Number? = null, name: String? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, label: String? = null, rich: Boolean = false) +

Parameters

+

+value - range input value

+

+name - the name attribute of the generated HTML input element

+

+min - minimal value (default 0)

+

+max - maximal value (default 100)

+

+step - step value (default 1)

+

+label - label text bound to the input element

+

+rich - determines if label can contain HTML code

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/autofocus.html b/api/pl.treksoft.kvision.form.range/-range/autofocus.html new file mode 100644 index 00000000..0ae50ac0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/autofocus.html @@ -0,0 +1,15 @@ + + + +Range.autofocus - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / autofocus
+
+

autofocus

+ +var autofocus: Boolean? +

Determines if the text input is automatically focused.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/blur.html b/api/pl.treksoft.kvision.form.range/-range/blur.html new file mode 100644 index 00000000..0ef45ca5 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/blur.html @@ -0,0 +1,16 @@ + + + +Range.blur - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / blur
+
+

blur

+ +open fun blur(): Unit +

Overrides FormControl.blur

+

Makes the input element blur.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/flabel.html b/api/pl.treksoft.kvision.form.range/-range/flabel.html new file mode 100644 index 00000000..a5a20b3b --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/flabel.html @@ -0,0 +1,16 @@ + + + +Range.flabel - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / flabel
+
+

flabel

+ +val flabel: FieldLabel +

Overrides FormControl.flabel

+

Form field label.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/focus.html b/api/pl.treksoft.kvision.form.range/-range/focus.html new file mode 100644 index 00000000..53ac1757 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/focus.html @@ -0,0 +1,16 @@ + + + +Range.focus - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / focus
+
+

focus

+ +open fun focus(): Unit +

Overrides FormControl.focus

+

Makes the input element focused.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/get-sn-class.html b/api/pl.treksoft.kvision.form.range/-range/get-sn-class.html new file mode 100644 index 00000000..b259af93 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/get-sn-class.html @@ -0,0 +1,18 @@ + + + +Range.getSnClass - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / getSnClass
+
+

getSnClass

+ +protected open fun getSnClass(): List<StringBoolPair> +

Overrides Widget.getSnClass

+

Returns list of CSS class names for current widget in the form of a List.

+

Return
+list of CSS class names

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/get-value-as-string.html b/api/pl.treksoft.kvision.form.range/-range/get-value-as-string.html new file mode 100644 index 00000000..dfd83f25 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/get-value-as-string.html @@ -0,0 +1,16 @@ + + + +Range.getValueAsString - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / getValueAsString
+
+

getValueAsString

+ +open fun getValueAsString(): String? +

Overrides NumberFormControl.getValueAsString

+

Returns the value of the control as a String.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/idc.html b/api/pl.treksoft.kvision.form.range/-range/idc.html new file mode 100644 index 00000000..1b83c3c2 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/idc.html @@ -0,0 +1,14 @@ + + + +Range.idc - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / idc
+
+

idc

+ +protected val idc: String + + diff --git a/api/pl.treksoft.kvision.form.range/-range/index.html b/api/pl.treksoft.kvision.form.range/-range/index.html new file mode 100644 index 00000000..885767a6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/index.html @@ -0,0 +1,1203 @@ + + + +Range - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range
+
+

Range

+open class Range : SimplePanel, NumberFormControl +

The form field component for range input control.

+

Constructors

+ + + + + + + +
+

<init>

+
+Range(value: Number? = null, name: String? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, label: String? = null, rich: Boolean = false)
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

flabel

+
+val flabel: FieldLabel +

Form field label.

+
+

idc

+
+val idc: String
+

input

+
+val input: RangeInput +

The actual input component.

+
+

invalidFeedback

+
+val invalidFeedback: InvalidFeedback +

Invalid feedback component.

+
+

label

+
+var label: String? +

The label text bound to the range input element.

+
+

max

+
+var max: Number +

Maximal value.

+
+

min

+
+var min: Number +

Minimal value.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the range input is read-only.

+
+

rich

+
+var rich: Boolean +

Determines if label can contain HTML code.

+
+

startValue

+
+var startValue: Number? +

The value attribute of the generated HTML input element.

+
+

step

+
+var step: Number +

Step value.

+
+

validatorError

+
+open var validatorError: String? +

Validator error message.

+
+

value

+
+open var value: Number? +

Range input value.

+
+

Inherited Properties

+ + + + + + + +
+

children

+
+val children: MutableList<Component>
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

getValueAsString

+
+open fun getValueAsString(): String? +

Returns the value of the control as a String.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

setEventListener

+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget +

Sets an event listener for current widget, keeping the actual type of component.

+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget +

Sets an event listener for current widget.

+
+

stepDown

+
+open fun stepDown(): Range +

Change value in minus.

+
+

stepUp

+
+open fun stepUp(): Range +

Change value in plus.

+
+

styleForHorizontalFormPanel

+
+open fun styleForHorizontalFormPanel(horizontalRatio: FormHorizontalRatio): Unit +

Style form control element for horizontal form panel.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

add

+
+open fun add(child: Component): SimplePanel +

Adds given component to the current container.

+
+

addAll

+
+open fun addAll(children: List<Component>): SimplePanel +

Adds a list of components to the current container.

+
+

addInternal

+
+fun addInternal(child: Component): SimplePanel +

Protected and final method to add given component to the current container.

+
+

childrenVNodes

+
+open fun childrenVNodes(): Array<VNode> +

Returns the array of the children Snabbdom vnodes.

+
+

getChildren

+
+open fun getChildren(): List<Component> +

Returns a list of children of the current container.

+
+

getValue

+
+open fun getValue(): Number? +

Returns the value of the control.

+
+

remove

+
+open fun remove(child: Component): SimplePanel +

Removes given component from the current container.

+
+

removeAll

+
+open fun removeAll(): SimplePanel +

Removes all children from the current container.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

setValue

+
+open fun setValue(v: Any?): Unit +

Sets the value of the control.

+
+

Extension Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addBsBgColor

+
+fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit
+

addBsBorder

+
+fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit
+

addBsClearfix

+
+fun Component.addBsClearfix(): Unit
+

addBsColor

+
+fun Component.addBsColor(bsColor: BsColor): Unit
+

addBsRounded

+
+fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit
+

bold

+
+fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold +

DSL builder extension function.

+
+

button

+
+fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button +

DSL builder extension function.

+
+

buttonGroup

+
+fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup +

DSL builder extension function.

+
+

canvas

+
+fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas +

DSL builder extension function.

+
+

chart

+
+fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart +

DSL builder extension function.

+
+

checkBox

+
+fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null): CheckBox +

DSL builder extension function.

+
+

checkBoxInput

+
+fun Container.checkBoxInput(value: Boolean = false, classes: Set<String> = setOf(), init: (CheckInput.() -> Unit)? = null): CheckBoxInput +

DSL builder extension function.

+
+

contextMenu

+
+fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu +

DSL builder extension function.

+
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+

dataContainer

+
+fun <M, C : Component, CONT : Container> Container.dataContainer(model: MutableList<M>, factory: Container.(M, Int, MutableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null): DataContainer<M, C, CONT> +

DSL builder extension function.

+fun <M, C : Component> Container.dataContainer(model: MutableList<M>, factory: Container.(M, Int, MutableList<M>) -> C, containerAdd: (VPanel.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, VPanel>.() -> Unit)? = null): DataContainer<M, C, VPanel> +

DSL builder extension function with VPanel default.

+
+

dateTime

+
+fun Container.dateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: (DateTime.() -> Unit)? = null): DateTime +

DSL builder extension function.

+
+

dateTimeInput

+
+fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: (DateTimeInput.() -> Unit)? = null): DateTimeInput +

DSL builder extension function.

+
+

div

+
+fun Container.div(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Div.() -> Unit)? = null): Div +

DSL builder extension function.

+
+

dockPanel

+
+fun Container.dockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit)? = null): DockPanel +

DSL builder extension function.

+
+

dropDown

+
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, direction: Direction = Direction.DROPDOWN, disabled: Boolean = false, forNavbar: Boolean = false, forDropDown: Boolean = false, classes: Set<String> = setOf(), init: (DropDown.() -> Unit)? = null): DropDown +

DSL builder extension function.

+
+

fieldLabel

+
+fun Container.fieldLabel(forId: String, content: String? = null, rich: Boolean = false, classes: Set<String> = setOf("control-label"), init: (FieldLabel.() -> Unit)? = null): FieldLabel +

DSL builder extension function.

+
+

fieldsetPanel

+
+fun Container.fieldsetPanel(legend: String? = null, classes: Set<String> = setOf(), init: (FieldsetPanel.() -> Unit)? = null): FieldsetPanel +

DSL builder extension function.

+
+

flexPanel

+
+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 +

DSL builder extension function.

+
+

footer

+
+fun Container.footer(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Footer.() -> Unit)? = null): Footer +

DSL builder extension function.

+
+

formPanel

+
+fun <K : Any> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String> = setOf(), customSerializers: Map<KClass<*>, KSerializer<*>>? = null, init: (FormPanel<K>.() -> Unit)? = null): FormPanel<K> +

DSL builder extension function.

+
+

gridPanel

+
+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 +

DSL builder extension function.

+
+

h1

+
+fun Container.h1(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H1.() -> Unit)? = null): H1 +

DSL builder extension function.

+
+

h2

+
+fun Container.h2(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H2.() -> Unit)? = null): H2 +

DSL builder extension function.

+
+

h3

+
+fun Container.h3(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H3.() -> Unit)? = null): H3 +

DSL builder extension function.

+
+

h4

+
+fun Container.h4(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H4.() -> Unit)? = null): H4 +

DSL builder extension function.

+
+

h5

+
+fun Container.h5(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H5.() -> Unit)? = null): H5 +

DSL builder extension function.

+
+

h6

+
+fun Container.h6(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (H6.() -> Unit)? = null): H6 +

DSL builder extension function.

+
+

header

+
+fun Container.header(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Header.() -> Unit)? = null): Header +

DSL builder extension function.

+
+

hPanel

+
+fun Container.hPanel(wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (HPanel.() -> Unit)? = null): HPanel +

DSL builder extension function.

+
+

icon

+
+fun Container.icon(icon: String, init: (Icon.() -> Unit)? = null): Icon +

DSL builder extension function.

+
+

iframe

+
+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 +

DSL builder extension function.

+
+

image

+
+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 +

DSL builder extension function.

+
+

link

+
+fun Container.link(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link +

DSL builder extension function.

+
+

listTag

+
+fun Container.listTag(type: ListType, elements: List<String>? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: (ListTag.() -> Unit)? = null): ListTag +

DSL builder extension function.

+
+

main

+
+fun Container.main(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Main.() -> Unit)? = null): Main +

DSL builder extension function.

+
+

navbar

+
+fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor = NavbarColor.LIGHT, bgColor: BsBgColor = BsBgColor.LIGHT, classes: Set<String> = setOf(), init: (Navbar.() -> Unit)? = null): Navbar +

DSL builder extension function.

+
+

onEvent

+
+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget
+

p

+
+fun Container.p(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (P.() -> Unit)? = null): P +

DSL builder extension function.

+
+

password

+
+fun Container.password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Password.() -> Unit)? = null): Password +

DSL builder extension function.

+
+

progressBar

+
+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 +

DSL builder extension function.

+
+

radio

+
+fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Radio.() -> Unit)? = null): Radio +

DSL builder extension function.

+
+

radioGroup

+
+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 +

DSL builder extension function.

+
+

radioGroupInput

+
+fun Container.radioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, init: (RadioGroupInput.() -> Unit)? = null): RadioGroupInput +

DSL builder extension function.

+
+

radioInput

+
+fun Container.radioInput(value: Boolean = false, classes: Set<String> = setOf(), init: (CheckInput.() -> Unit)? = null): RadioInput +

DSL builder extension function.

+
+

range

+
+fun Container.range(value: Number? = null, name: String? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, label: String? = null, rich: Boolean = false, init: (Range.() -> Unit)? = null): Range +

DSL builder extension function.

+
+

rangeInput

+
+fun Container.rangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, classes: Set<String> = setOf(), init: (RangeInput.() -> Unit)? = null): RangeInput +

DSL builder extension function.

+
+

removeBsBgColor

+
+fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit
+

removeBsBorder

+
+fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit
+

removeBsClearfix

+
+fun Component.removeBsClearfix(): Unit
+

removeBsColor

+
+fun Component.removeBsColor(bsColor: BsColor): Unit
+

removeBsRounded

+
+fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit
+

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 +

DSL builder extension function.

+
+

richText

+
+fun Container.richText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (RichText.() -> Unit)? = null): RichText +

DSL builder extension function.

+
+

richTextInput

+
+fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: (RichTextInput.() -> Unit)? = null): RichTextInput +

DSL builder extension function.

+
+

section

+
+fun Container.section(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Section.() -> Unit)? = null): Section +

DSL builder extension function.

+
+

select

+
+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 +

DSL builder extension function.

+
+

selectInput

+
+fun Container.selectInput(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf(), init: (SelectInput.() -> Unit)? = null): SelectInput +

DSL builder extension function.

+
+

selectRemote

+
+fun <T : Any> Container.selectRemote(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: (() -> String)? = null, value: String? = null, name: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, preload: Boolean = false, label: String? = null, rich: Boolean = false, init: (SelectRemote<T>.() -> Unit)? = null): SelectRemote<T> +

DSL builder extension function.

+
+

selectRemoteInput

+
+fun <T : Any> Container.selectRemoteInput(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: (() -> String)? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, preload: Boolean = false, classes: Set<String> = setOf(), init: (SelectRemoteInput<T>.() -> Unit)? = null): SelectRemoteInput<T> +

DSL builder extension function.

+
+

setContextMenu

+
+fun Widget.setContextMenu(contextMenu: ContextMenu): Widget +

Sets context menu for the current widget.

+
+

simplePanel

+
+fun Container.simplePanel(classes: Set<String> = setOf(), init: (SimplePanel.() -> Unit)? = null): SimplePanel +

DSL builder extension function.

+
+

simpleSelect

+
+fun Container.simpleSelect(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (SimpleSelect.() -> Unit)? = null): SimpleSelect +

DSL builder extension function.

+
+

simpleSelectInput

+
+fun Container.simpleSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, classes: Set<String> = setOf(), init: (SimpleSelectInput.() -> Unit)? = null): SimpleSelectInput +

DSL builder extension function.

+
+

span

+
+fun Container.span(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Span.() -> Unit)? = null): Span +

DSL builder extension function.

+
+

spinner

+
+fun Container.spinner(value: Number? = null, name: String? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, buttonStyle: ButtonStyle? = null, label: String? = null, rich: Boolean = false, init: (Spinner.() -> Unit)? = null): Spinner +

DSL builder extension function.

+
+

spinnerInput

+
+fun Container.spinnerInput(value: Number? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, buttonStyle: ButtonStyle? = null, classes: Set<String> = setOf(), init: (SpinnerInput.() -> Unit)? = null): SpinnerInput +

DSL builder extension function.

+
+

splitPanel

+
+fun Container.splitPanel(direction: Direction = Direction.VERTICAL, classes: Set<String> = setOf(), init: (SplitPanel.() -> Unit)? = null): SplitPanel +

DSL builder extension function.

+
+

stackPanel

+
+fun Container.stackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: (StackPanel.() -> Unit)? = null): StackPanel +

DSL builder extension function.

+
+

stateBinding

+
+fun <S : Any, CONT : Container> CONT.stateBinding(observableState: ObservableState<S>, factory: CONT.(S) -> Unit): StateBinding<S, CONT, Unit> +

DSL builder extension function.

+
+

stateUpdate

+
+fun <S : Any, CONT : Container, CONTENT> CONT.stateUpdate(observableState: ObservableState<S>, factory: CONT.(S) -> CONTENT): Updateable<S, CONTENT> +

DSL builder extension function for updateable redux content.

+
+

style

+
+fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style +

DSL builder extension function.

+
+

table

+
+fun Container.table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsiveType: ResponsiveType? = null, theadType: TheadType? = null, classes: Set<String> = setOf(), init: (Table.() -> Unit)? = null): Table +

DSL builder extension function.

+
+

tabPanel

+
+fun Container.tabPanel(tabPosition: TabPosition = TabPosition.TOP, sideTabSize: SideTabSize = SideTabSize.SIZE_3, scrollableTabs: Boolean = false, classes: Set<String> = setOf(), init: (TabPanel.() -> Unit)? = null): TabPanel +

DSL builder extension function.

+
+

tabulator

+
+fun <T : Any> Container.tabulator(data: List<T>? = null, dataUpdateOnEdit: Boolean = true, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (Tabulator<T>.() -> Unit)? = null): Tabulator<T> +

DSL builder extension function.

+fun <T : Any, S : Any> Container.tabulator(store: ObservableState<S>, dataFactory: (S) -> List<T>, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (Tabulator<T>.() -> Unit)? = null): Tabulator<T> +

DSL builder extension function for general redux store.

+fun <T : Any> Container.tabulator(options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (Tabulator<T>.() -> Unit)? = null): Tabulator<T> +

DSL builder extension function for dynamic data (send within options parameter).

+
+

tabulatorRemote

+
+fun <T : Any, E : Any> Container.tabulatorRemote(serviceManager: KVServiceManager<E>, function: suspend E.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?, String?) -> <ERROR CLASS><T>, stateFunction: (() -> String)? = null, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (TabulatorRemote<T, E>.() -> Unit)? = null): TabulatorRemote<T, E> +

DSL builder extension function.

+
+

tag

+
+fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), attributes: Map<String, String> = mapOf(), init: (Tag.() -> Unit)? = null): Tag +

DSL builder extension function.

+
+

text

+
+fun Container.text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Text.() -> Unit)? = null): Text +

DSL builder extension function.

+
+

textArea

+
+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 +

DSL builder extension function.

+
+

textAreaInput

+
+fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf(), init: (TextAreaInput.() -> Unit)? = null): TextAreaInput +

DSL builder extension function.

+
+

textInput

+
+fun Container.textInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: (TextInput.() -> Unit)? = null): TextInput +

DSL builder extension function.

+
+

toolbar

+
+fun Container.toolbar(size: ButtonGroupSize? = null, spacing: Int = 2, vertical: Boolean = false, classes: Set<String> = setOf(), init: (Toolbar.() -> Unit)? = null): Toolbar +

DSL builder extension function.

+
+

typeahead

+
+fun Container.typeahead(options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Typeahead.() -> Unit)? = null): Typeahead +

DSL builder extension function.

+
+

typeaheadInput

+
+fun Container.typeaheadInput(options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: (TypeaheadInput.() -> Unit)? = null): TypeaheadInput +

DSL builder extension function.

+
+

typeaheadRemote

+
+fun <T : Any> Container.typeaheadRemote(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: (() -> String)? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (TypeaheadRemote<T>.() -> Unit)? = null): TypeaheadRemote<T> +

DSL builder extension function.

+
+

typeaheadRemoteInput

+
+fun <T : Any> Container.typeaheadRemoteInput(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: (() -> String)? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: (TypeaheadRemoteInput<T>.() -> Unit)? = null): TypeaheadRemoteInput<T> +

DSL builder extension function.

+
+

upload

+
+fun Container.upload(uploadUrl: String? = null, multiple: Boolean = false, label: String? = null, rich: Boolean = false, init: (Upload.() -> Unit)? = null): Upload +

DSL builder extension function.

+
+

uploadInput

+
+fun Container.uploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String> = setOf(), init: (UploadInput.() -> Unit)? = null): UploadInput +

DSL builder extension function.

+
+

vPanel

+
+fun Container.vPanel(justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (VPanel.() -> Unit)? = null): VPanel +

DSL builder extension function.

+
+

widget

+
+fun Container.widget(classes: Set<String> = setOf(), init: (Widget.() -> Unit)? = null): Widget +

DSL builder extension function.

+
+

widgetWrapper

+
+fun Container.widgetWrapper(wrapped: Component?, classes: Set<String> = setOf(), init: (WidgetWrapper.() -> Unit)? = null): WidgetWrapper +

DSL builder extension function.

+
+

window

+
+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, maximizeButton: Boolean = false, minimizeButton: Boolean = false, icon: String? = null, classes: Set<String> = setOf(), init: (Window.() -> Unit)? = null): Window +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/input.html b/api/pl.treksoft.kvision.form.range/-range/input.html new file mode 100644 index 00000000..d022f035 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/input.html @@ -0,0 +1,16 @@ + + + +Range.input - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / input
+
+

input

+ +val input: RangeInput +

Overrides FormControl.input

+

The actual input component.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/invalid-feedback.html b/api/pl.treksoft.kvision.form.range/-range/invalid-feedback.html new file mode 100644 index 00000000..2a3afeab --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/invalid-feedback.html @@ -0,0 +1,16 @@ + + + +Range.invalidFeedback - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / invalidFeedback
+
+

invalidFeedback

+ +val invalidFeedback: InvalidFeedback +

Overrides FormControl.invalidFeedback

+

Invalid feedback component.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/label.html b/api/pl.treksoft.kvision.form.range/-range/label.html new file mode 100644 index 00000000..d2266856 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/label.html @@ -0,0 +1,15 @@ + + + +Range.label - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / label
+
+

label

+ +var label: String? +

The label text bound to the range input element.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/max.html b/api/pl.treksoft.kvision.form.range/-range/max.html new file mode 100644 index 00000000..3d69625d --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/max.html @@ -0,0 +1,15 @@ + + + +Range.max - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / max
+
+

max

+ +var max: Number +

Maximal value.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/min.html b/api/pl.treksoft.kvision.form.range/-range/min.html new file mode 100644 index 00000000..0ec9771e --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/min.html @@ -0,0 +1,15 @@ + + + +Range.min - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / min
+
+

min

+ +var min: Number +

Minimal value.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/readonly.html b/api/pl.treksoft.kvision.form.range/-range/readonly.html new file mode 100644 index 00000000..77f7ad35 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/readonly.html @@ -0,0 +1,15 @@ + + + +Range.readonly - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / readonly
+
+

readonly

+ +var readonly: Boolean? +

Determines if the range input is read-only.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/remove-event-listeners.html b/api/pl.treksoft.kvision.form.range/-range/remove-event-listeners.html new file mode 100644 index 00000000..98bec115 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/remove-event-listeners.html @@ -0,0 +1,18 @@ + + + +Range.removeEventListeners - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / removeEventListeners
+
+

removeEventListeners

+ +open fun removeEventListeners(): Widget +

Overrides Widget.removeEventListeners

+

Removes all event listeners from current widget.

+

Return
+current widget

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/rich.html b/api/pl.treksoft.kvision.form.range/-range/rich.html new file mode 100644 index 00000000..c5947a54 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/rich.html @@ -0,0 +1,15 @@ + + + +Range.rich - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / rich
+
+

rich

+ +var rich: Boolean +

Determines if label can contain HTML code.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/set-event-listener.html b/api/pl.treksoft.kvision.form.range/-range/set-event-listener.html new file mode 100644 index 00000000..127e0e36 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/set-event-listener.html @@ -0,0 +1,57 @@ + + + +Range.setEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / setEventListener
+
+

setEventListener

+ +open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget +

Overrides Widget.setEventListener

+

Sets an event listener for current widget, keeping the actual type of component.

+

Parameters

+

+T - widget type

+

+block - event handler

+

Return
+

current widget

+ + +

Example:

+ + +
    button.setEventListener<Button> {
+        dblclick = {
+            Alert.show("Button double clicked!")
+            // self is of type Button here
+        }
+    }

+ +open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget +

Overrides Widget.setEventListener

+
+Deprecated: Use onEvent extension function instead.
+
+

Sets an event listener for current widget.

+

Parameters

+

+block - event handler

+

Return
+

current widget

+ + +

Example:

+ + +
    button.setEventListener {
+        dblclick = {
+            Alert.show("Button double clicked!")
+            // self is of type Widget here
+        }
+    }

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/start-value.html b/api/pl.treksoft.kvision.form.range/-range/start-value.html new file mode 100644 index 00000000..fb564c63 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/start-value.html @@ -0,0 +1,17 @@ + + + +Range.startValue - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / startValue
+
+

startValue

+ +var startValue: Number? +

The value attribute of the generated HTML input element.

+

This value is placed directly in generated HTML code, while the value property is dynamically +bound to the range input value.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/step-down.html b/api/pl.treksoft.kvision.form.range/-range/step-down.html new file mode 100644 index 00000000..bcc89d25 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/step-down.html @@ -0,0 +1,15 @@ + + + +Range.stepDown - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / stepDown
+
+

stepDown

+ +open fun stepDown(): Range +

Change value in minus.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/step-up.html b/api/pl.treksoft.kvision.form.range/-range/step-up.html new file mode 100644 index 00000000..a9a47654 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/step-up.html @@ -0,0 +1,15 @@ + + + +Range.stepUp - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / stepUp
+
+

stepUp

+ +open fun stepUp(): Range +

Change value in plus.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/step.html b/api/pl.treksoft.kvision.form.range/-range/step.html new file mode 100644 index 00000000..af800102 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/step.html @@ -0,0 +1,15 @@ + + + +Range.step - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / step
+
+

step

+ +var step: Number +

Step value.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/style-for-horizontal-form-panel.html b/api/pl.treksoft.kvision.form.range/-range/style-for-horizontal-form-panel.html new file mode 100644 index 00000000..57750a4c --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/style-for-horizontal-form-panel.html @@ -0,0 +1,16 @@ + + + +Range.styleForHorizontalFormPanel - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / styleForHorizontalFormPanel
+
+

styleForHorizontalFormPanel

+ +open fun styleForHorizontalFormPanel(horizontalRatio: FormHorizontalRatio): Unit +

Overrides FormControl.styleForHorizontalFormPanel

+

Style form control element for horizontal form panel.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/validator-error.html b/api/pl.treksoft.kvision.form.range/-range/validator-error.html new file mode 100644 index 00000000..51356449 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/validator-error.html @@ -0,0 +1,16 @@ + + + +Range.validatorError - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / validatorError
+
+

validatorError

+ +open var validatorError: String? +

Overrides FormControl.validatorError

+

Validator error message.

+ + diff --git a/api/pl.treksoft.kvision.form.range/-range/value.html b/api/pl.treksoft.kvision.form.range/-range/value.html new file mode 100644 index 00000000..9d30dcb9 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/-range/value.html @@ -0,0 +1,16 @@ + + + +Range.value - kvision + + + +kvision / pl.treksoft.kvision.form.range / Range / value
+
+

value

+ +open var value: Number? +

Overrides NumberFormControl.value

+

Range input value.

+ + diff --git a/api/pl.treksoft.kvision.form.range/index.html b/api/pl.treksoft.kvision.form.range/index.html new file mode 100644 index 00000000..fb7f1154 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/index.html @@ -0,0 +1,58 @@ + + + +pl.treksoft.kvision.form.range - kvision + + + +kvision / pl.treksoft.kvision.form.range
+
+

Package pl.treksoft.kvision.form.range

+

Types

+ + + + + + + + + + + +
+

Range

+
+open class Range : SimplePanel, NumberFormControl +

The form field component for range input control.

+
+

RangeInput

+
+open class RangeInput : Widget, FormInput +

Range input component.

+
+

Functions

+ + + + + + + + + + + +
+

range

+
+fun Container.range(value: Number? = null, name: String? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, label: String? = null, rich: Boolean = false, init: (Range.() -> Unit)? = null): Range +

DSL builder extension function.

+
+

rangeInput

+
+fun Container.rangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, classes: Set<String> = setOf(), init: (RangeInput.() -> Unit)? = null): RangeInput +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.range/range-input.html b/api/pl.treksoft.kvision.form.range/range-input.html new file mode 100644 index 00000000..3af8fdc9 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/range-input.html @@ -0,0 +1,16 @@ + + + +rangeInput - kvision + + + +kvision / pl.treksoft.kvision.form.range / rangeInput
+
+

rangeInput

+ +fun Container.rangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, classes: Set<String> = setOf(), init: (RangeInput.() -> Unit)? = null): RangeInput +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + diff --git a/api/pl.treksoft.kvision.form.range/range.html b/api/pl.treksoft.kvision.form.range/range.html new file mode 100644 index 00000000..10388a75 --- /dev/null +++ b/api/pl.treksoft.kvision.form.range/range.html @@ -0,0 +1,16 @@ + + + +range - kvision + + + +kvision / pl.treksoft.kvision.form.range / range
+
+

range

+ +fun Container.range(value: Number? = null, name: String? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, label: String? = null, rich: Boolean = false, init: (Range.() -> Unit)? = null): Range +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + -- cgit