From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- .../-text-area/-init-.html | 2 +- .../-text-area/cols.html | 2 +- .../-text-area/index.html | 763 +++++++++------------ .../-text-area/input.html | 3 +- .../-text-area/rows.html | 2 +- .../-text-area/wrap-hard.html | 2 +- 6 files changed, 313 insertions(+), 461 deletions(-) (limited to 'api/pl.treksoft.kvision.form.text/-text-area') diff --git a/api/pl.treksoft.kvision.form.text/-text-area/-init-.html b/api/pl.treksoft.kvision.form.text/-text-area/-init-.html index 7878587a..6314d94d 100644 --- a/api/pl.treksoft.kvision.form.text/-text-area/-init-.html +++ b/api/pl.treksoft.kvision.form.text/-text-area/-init-.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.text / TextArea / <init>

<init>

- +(js) TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)

Parameters

diff --git a/api/pl.treksoft.kvision.form.text/-text-area/cols.html b/api/pl.treksoft.kvision.form.text/-text-area/cols.html index 2a2c9bc0..28e108a8 100644 --- a/api/pl.treksoft.kvision.form.text/-text-area/cols.html +++ b/api/pl.treksoft.kvision.form.text/-text-area/cols.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.text / TextArea / cols

cols

- +(js) var cols: Int?

Number of columns.

diff --git a/api/pl.treksoft.kvision.form.text/-text-area/index.html b/api/pl.treksoft.kvision.form.text/-text-area/index.html index 56f0102a..818f5f5c 100644 --- a/api/pl.treksoft.kvision.form.text/-text-area/index.html +++ b/api/pl.treksoft.kvision.form.text/-text-area/index.html @@ -8,14 +8,15 @@ kvision / pl.treksoft.kvision.form.text / TextArea

TextArea

-open class TextArea : AbstractText +(js) open class TextArea : AbstractText

Form field textarea component.

Constructors

@@ -27,193 +28,39 @@ +var cols: Int? +val input: TextAreaInput +var rows: Int? - - -
-

<init>

+(js) +

<init>

TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
-

cols

+(js) +

cols

-var cols: Int?

Number of columns.

-
-

input

+(js) +

input

-val input: TextAreaInput

The actual input component.

-
-

rows

+(js) +

rows

-var rows: Int?

Number of rows.

-
-

wrapHard

+(js) +

wrapHard

-var wrapHard: Boolean

Determines if hard wrapping is enabled for the textarea element.

-
-

Inherited Properties

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

autofocus

-
-var autofocus: Boolean? -

Determines if the text input is automatically focused.

-
-

flabel

-
-val flabel: FieldLabel -

Form field label.

-
-

invalidFeedback

-
-val invalidFeedback: InvalidFeedback -

Invalid feedback component.

-
-

label

-
-var label: String? -

The label text bound to the text input element.

-
-

maxlength

-
-var maxlength: Int? -

Maximal length of the text input value.

-
-

placeholder

-
-var placeholder: String? -

The placeholder for the text input.

-
-

readonly

-
-var readonly: Boolean? -

Determines if the text input is read-only.

-
-

rich

-
-var rich: Boolean -

Determines if label can contain HTML code.

-
-

startValue

-
-var startValue: String? -

The value attribute of the generated HTML input element.

-
-

value

-
-open var value: String? -

Text input value.

-
-

Inherited Functions

- - - - - - - - - - - - - - - - - - - - - - - - - +var wrapHard: Boolean
-

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.

-
-

removeEventListener

-
-open fun removeEventListener(id: Int): Widget -

Removes event listener from current widget.

-
-

removeEventListeners

-
-open fun removeEventListeners(): Widget -

Removes all event listeners from current widget.

-
-

setEventListener

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

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

-
@@ -222,24 +69,27 @@ -

changeFlow

+(js) +

changeFlow

-val <T : Widget> T.changeFlow: <ERROR CLASS><T> +val <T : Widget> T.changeFlow: Flow<T> -

clickFlow

+(js) +

clickFlow

-val <T : Widget> T.clickFlow: <ERROR CLASS><T> +val <T : Widget> T.clickFlow: Flow<T> -

inputFlow

+(js) +

inputFlow

-val <T : Widget> T.inputFlow: <ERROR CLASS><T> +val <T : Widget> T.inputFlow: Flow<T> @@ -248,867 +98,870 @@ -

addBsBgColor

+(js) +

addBsBgColor

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

addBsBorder

+(js) +

addBsBorder

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

addBsClearfix

+(js) +

addBsClearfix

fun Component.addBsClearfix(): Unit -

addBsColor

+(js) +

addBsColor

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

addBsRounded

+(js) +

addBsRounded

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

bold

+(js) +

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.

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

button

+(js) +

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.

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

buttonGroup

+(js) +

buttonGroup

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

DSL builder extension function.

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

canvas

+(js) +

canvas

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

DSL builder extension function.

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

chart

+(js) +

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.

- +fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null,