From bfd5aa358e141d6c86d476d8bb66b104a80a3b96 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 21 May 2020 00:13:50 +0200 Subject: API documentation for KVision 3.10.0 --- api/pl.treksoft.kvision.core/-widget/index.html | 136 +++++++++++++++++++++--- 1 file changed, 121 insertions(+), 15 deletions(-) (limited to 'api/pl.treksoft.kvision.core/-widget/index.html') diff --git a/api/pl.treksoft.kvision.core/-widget/index.html b/api/pl.treksoft.kvision.core/-widget/index.html index 5451601e..b8a1b260 100644 --- a/api/pl.treksoft.kvision.core/-widget/index.html +++ b/api/pl.treksoft.kvision.core/-widget/index.html @@ -55,14 +55,25 @@

afterDestroyHook

+

A function called after the widget is removed from the DOM.

var afterDestroyHook: (() -> Unit)? (js) +

afterDisposeHook

+ + +

A function called after the widget is disposed.

+var afterDisposeHook: (() -> Unit)? + + + +(js)

afterInsertHook

+

A function called after the widget is inserted to the DOM.

var afterInsertHook: ((VNode) -> Unit)? @@ -247,6 +258,15 @@ (js) +

animate

+ + +

Animate the widget changing CSS properties.

+open fun animate(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null, styles: StyledComponent.() -> Unit): Unit + + + +(js)

clearDragDropData

@@ -300,6 +320,24 @@ (js) +

fadeIn

+ + +

Shows current widget with fade in effect.

+open fun fadeIn(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null): Widget + + + +(js) +

fadeOut

+ + +

Hides current widget with fade out effect.

+open fun fadeOut(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null): Widget + + + +(js)

getAttribute

@@ -381,6 +419,15 @@ (js) +

hideAnim

+ + +

Hides current widget with animation effect.

+open fun hideAnim(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null): Widget + + + +(js)

hidePopover

@@ -537,6 +584,15 @@ (js) +

showAnim

+ + +

Shows current widget with animation effect.

+open fun showAnim(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null): Widget + + + +(js)

showPopover

@@ -563,6 +619,24 @@ (js) +

slideDown

+ + +

Shows current widget with slide down effect.

+open fun slideDown(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null): Widget + + + +(js) +

slideUp

+ + +

Hides current widget with slide up effect.

+open fun slideUp(duration: Int = 400, easing: Easing = Easing.SWING, complete: (() -> Unit)? = null): Widget + + + +(js)

toggleVisible

@@ -589,6 +663,7 @@

changeFlow

+

Extension property returning Flow for a change event.

val <T : Widget> T.changeFlow: Flow<T> @@ -597,6 +672,7 @@

clickFlow

+

Extension property returning Flow for a click event.

val <T : Widget> T.clickFlow: Flow<T> @@ -605,6 +681,7 @@

inputFlow

+

Extension property returning Flow for an input event.

val <T : Widget> T.inputFlow: Flow<T> @@ -655,11 +732,20 @@ (js) +

bind

+ + +

An extension function which binds the widget to the observable state.

+fun <S, W : Widget> W.bind(observableState: ObservableState<S>, factory: W.(S) -> Unit): W + + + +(js)

contextMenu

DSL builder extension function.

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

eventFlow

+

Extension property returning Flow<Pair<Widget, Event>> for a given event

fun <T : Widget> T.eventFlow(event: String): Flow<Pair<T, Event>> (js) +

onClick

+ + +

An extension function for defining on click event handlers.

+fun <T : Widget> T.onClick(handler: T.(MouseEvent) -> Unit): Int + + + +(js)

onEvent

+

An extension function for defining event handlers.

fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int @@ -747,16 +844,7 @@

Base class for basic text components.

-abstract class AbstractTextInput : Widget, FormInput - - - -(js) -

Button

- - -

Button component.

-open class Button : Widget +abstract class AbstractTextInput : Widget, FormInput, ObservableState<String?> @@ -783,7 +871,7 @@

The basic input component rendered as HTML input type="checkbox" or input type="radio".

-abstract class CheckInput : Widget, FormInput +abstract class CheckInput : Widget, FormInput, ObservableState<Boolean> @@ -855,7 +943,16 @@

Range input component.

-open class RangeInput : Widget, FormInput +open class RangeInput : Widget, FormInput, ObservableState<Number?> + + + +(js) +

React

+ + +

React component for KVision with support for state holder.

+class React<S> : Widget, ObservableState<S> @@ -882,7 +979,7 @@

The basic component for spinner control.

-open class SpinnerInput : Widget, FormInput +open class SpinnerInput : Widget, FormInput, ObservableState<Number?> @@ -891,7 +988,7 @@

A class which binds the given container to the observable state.

-class StateBinding<S : Any, CONT : Container, CONTENT> : Widget +class StateBinding<S : Any, CONT : Container, CONTENT> : Widget @@ -905,6 +1002,15 @@ (js) +

TextNode

+ + +

Simple component for rendering text DOM node.

+open class TextNode : Widget + + + +(js)

UploadInput

-- cgit