From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 22 Oct 2018 00:01:39 +0200 Subject: API documentation for KVision 0.0.19 --- .../-radio/-init-.html | 27 ++ .../-radio/blur.html | 16 ++ .../-radio/extra-value.html | 15 + .../-radio/flabel.html | 16 ++ .../-radio/focus.html | 16 ++ .../-radio/get-sn-class.html | 18 ++ .../-radio/index.html | 309 +++++++++++++++++++++ .../-radio/inline.html | 21 ++ .../-radio/input.html | 16 ++ .../-radio/label.html | 15 + .../-radio/on-click.html | 15 + .../-radio/radio.html | 16 ++ .../-radio/remove-event-listeners.html | 18 ++ .../-radio/rich.html | 15 + .../-radio/set-event-listener.html | 54 ++++ .../-radio/squared.html | 21 ++ .../-radio/start-value.html | 17 ++ .../-radio/style.html | 21 ++ .../-radio/validation-info.html | 16 ++ .../-radio/value.html | 16 ++ 20 files changed, 678 insertions(+) create mode 100644 api/pl.treksoft.kvision.form.check/-radio/-init-.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/blur.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/extra-value.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/flabel.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/focus.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/index.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/inline.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/input.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/label.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/on-click.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/radio.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/rich.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/squared.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/start-value.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/style.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/validation-info.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio/value.html (limited to 'api/pl.treksoft.kvision.form.check/-radio') diff --git a/api/pl.treksoft.kvision.form.check/-radio/-init-.html b/api/pl.treksoft.kvision.form.check/-radio/-init-.html new file mode 100644 index 00000000..4f7ae330 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/-init-.html @@ -0,0 +1,27 @@ + + + +Radio.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / <init>
+
+

<init>

+ +Radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) +

Parameters

+

+value - selection state

+

+extraValue - the additional String value used for the radio button group

+

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

+

+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.check/-radio/blur.html b/api/pl.treksoft.kvision.form.check/-radio/blur.html new file mode 100644 index 00000000..6ecbdcb3 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/blur.html @@ -0,0 +1,16 @@ + + + +Radio.blur - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / blur
+
+

blur

+ +open fun blur(): Unit +

Overrides FormControl.blur

+

Makes the input element blur.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/extra-value.html b/api/pl.treksoft.kvision.form.check/-radio/extra-value.html new file mode 100644 index 00000000..65bfd84c --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/extra-value.html @@ -0,0 +1,15 @@ + + + +Radio.extraValue - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / extraValue
+
+

extraValue

+ +var extraValue: String? +

The additional String value used for the radio button group.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/flabel.html b/api/pl.treksoft.kvision.form.check/-radio/flabel.html new file mode 100644 index 00000000..538181c7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/flabel.html @@ -0,0 +1,16 @@ + + + +Radio.flabel - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / flabel
+
+

flabel

+ +val flabel: FieldLabel +

Overrides FormControl.flabel

+

Form field label.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/focus.html b/api/pl.treksoft.kvision.form.check/-radio/focus.html new file mode 100644 index 00000000..fff66f41 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/focus.html @@ -0,0 +1,16 @@ + + + +Radio.focus - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / focus
+
+

focus

+ +open fun focus(): Unit +

Overrides FormControl.focus

+

Makes the input element focused.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html b/api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html new file mode 100644 index 00000000..4e585f76 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html @@ -0,0 +1,18 @@ + + + +Radio.getSnClass - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / 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.check/-radio/index.html b/api/pl.treksoft.kvision.form.check/-radio/index.html new file mode 100644 index 00000000..e7d9d2f4 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/index.html @@ -0,0 +1,309 @@ + + + +Radio - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio
+
+

Radio

+open class Radio : SimplePanel, BoolFormControl +

The form field component rendered as HTML input type="radio".

+

Constructors

+ + + + + + + +
+

<init>

+
+Radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+

Properties

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

extraValue

+
+var extraValue: String? +

The additional String value used for the radio button group.

+
+

flabel

+
+val flabel: FieldLabel +

Form field label.

+
+

inline

+
+var inline: Boolean +

Determines if the radio button is rendered inline.

+
+

input

+
+val input: CheckInput +

The actual input component.

+
+

label

+
+var label: String? +

The label text bound to the input element.

+
+

rich

+
+var rich: Boolean +

Determines if label can contain HTML code.

+
+

squared

+
+var squared: Boolean +

Determines if the radio button is rendered as a square.

+
+

startValue

+
+var startValue: Boolean +

The value attribute of the generated HTML input element.

+
+

style

+
+var style: RadioStyle? +

The style (one of Bootstrap standard colors) of the input.

+
+

validationInfo

+
+val validationInfo: HelpBlock +

Validation info component.

+
+

value

+
+open var value: Boolean +

The selection state of the radio button.

+
+

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.

+
+

onClick

+
+open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio +

A convenient helper for easy setting onClick event handler.

+
+

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.

+
+

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(): Boolean +

Returns the value of the control.

+
+

getValueAsString

+
+open fun getValueAsString(): String? +

Returns the value of the control as a String.

+
+

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.

+
+

Companion Object Functions

+ + + + + + + +
+

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.

+
+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/inline.html b/api/pl.treksoft.kvision.form.check/-radio/inline.html new file mode 100644 index 00000000..2af48163 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/inline.html @@ -0,0 +1,21 @@ + + + +Radio.inline - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / inline
+
+

inline

+ +var inline: Boolean +

Determines if the radio button is rendered inline.

+

Getter
+

Determines if the radio button is rendered inline.

+

+

Setter
+

Determines if the radio button is rendered inline.

+

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

input

+ +val input: CheckInput +

Overrides FormControl.input

+

The actual input component.

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

label

+ +var label: String? +

The label text bound to the input element.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/on-click.html b/api/pl.treksoft.kvision.form.check/-radio/on-click.html new file mode 100644 index 00000000..7ea9c764 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/on-click.html @@ -0,0 +1,15 @@ + + + +Radio.onClick - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / onClick
+
+

onClick

+ +open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio +

A convenient helper for easy setting onClick event handler.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/radio.html b/api/pl.treksoft.kvision.form.check/-radio/radio.html new file mode 100644 index 00000000..5f842c88 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/radio.html @@ -0,0 +1,16 @@ + + + +Radio.radio - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / radio
+
+

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.

+

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

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html b/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html new file mode 100644 index 00000000..793b6635 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html @@ -0,0 +1,18 @@ + + + +Radio.removeEventListeners - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / 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.check/-radio/rich.html b/api/pl.treksoft.kvision.form.check/-radio/rich.html new file mode 100644 index 00000000..d7973e28 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/rich.html @@ -0,0 +1,15 @@ + + + +Radio.rich - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / rich
+
+

rich

+ +var rich: Boolean +

Determines if label can contain HTML code.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html b/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html new file mode 100644 index 00000000..db72a974 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html @@ -0,0 +1,54 @@ + + + +Radio.setEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / 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

+

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.check/-radio/squared.html b/api/pl.treksoft.kvision.form.check/-radio/squared.html new file mode 100644 index 00000000..108305be --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/squared.html @@ -0,0 +1,21 @@ + + + +Radio.squared - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / squared
+
+

squared

+ +var squared: Boolean +

Determines if the radio button is rendered as a square.

+

Getter
+

Determines if the radio button is rendered as a square.

+

+

Setter
+

Determines if the radio button is rendered as a square.

+

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

startValue

+ +var startValue: Boolean +

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 input selection state.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/style.html b/api/pl.treksoft.kvision.form.check/-radio/style.html new file mode 100644 index 00000000..d5063f77 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/style.html @@ -0,0 +1,21 @@ + + + +Radio.style - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / style
+
+

style

+ +var style: RadioStyle? +

The style (one of Bootstrap standard colors) of the input.

+

Getter
+

The style (one of Bootstrap standard colors) of the input.

+

+

Setter
+

The style (one of Bootstrap standard colors) of the input.

+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/validation-info.html b/api/pl.treksoft.kvision.form.check/-radio/validation-info.html new file mode 100644 index 00000000..6464d415 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/validation-info.html @@ -0,0 +1,16 @@ + + + +Radio.validationInfo - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / validationInfo
+
+

validationInfo

+ +val validationInfo: HelpBlock +

Overrides FormControl.validationInfo

+

Validation info component.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/value.html b/api/pl.treksoft.kvision.form.check/-radio/value.html new file mode 100644 index 00000000..026e80e9 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/value.html @@ -0,0 +1,16 @@ + + + +Radio.value - kvision + + + +kvision / pl.treksoft.kvision.form.check / Radio / value
+
+

value

+ +open var value: Boolean +

Overrides BoolFormControl.value

+

The selection state of the radio button.

+ + -- cgit