kvision / pl.treksoft.kvision.state / ObservableState

ObservableState

(js) interface ObservableState<S>

An interface of observable state.

Functions

(js)

getState

Get current state.

abstract fun getState(): S
(js)

subscribe

Subscribe for the state change notifications.

abstract fun subscribe(observer: (S) -> Unit): () -> Unit

Extension Properties

(js)

stateFlow

Extension property returning StateFlow for an ObservableState.

val <S> ObservableState<S>.stateFlow: StateFlow<S>

Inheritors

(js)

AbstractText

Base class for form field text components.

abstract class AbstractText : SimplePanel, StringFormControl, ObservableState<String?>
(js)

AbstractTextInput

Base class for basic text components.

abstract class AbstractTextInput : Widget, FormInput, ObservableState<String?>
(js)

CheckBox

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

open class CheckBox : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

CheckInput

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

abstract class CheckInput : Widget, FormInput, ObservableState<Boolean>
(js)

DateTime

Form field date/time chooser component.

open class DateTime : SimplePanel, DateFormControl, ObservableState<Date?>
(js)

DateTimeInput

Basic date/time chooser component.

open class DateTimeInput : SimplePanel, FormInput, ObservableState<Date?>
(js)

ObservableList

Observable list interface.

interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>
(js)

ObservableListWrapper

Simple observable list implementation.

class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>
(js)

ObservableSet

Observable set interface.

interface ObservableSet<T> : MutableSet<T>, ObservableState<Set<T>>
(js)

ObservableSetWrapper

Simple observable set implementation.

class ObservableSetWrapper<T> : MutableSet<T>, ObservableSet<T>, ObservableState<Set<T>>
(js)

ObservableValue

The observable value class.

open class ObservableValue<T> : ObservableState<T>
(js)

OnsCheckBox

Onsen UI form field checkbox component.

open class OnsCheckBox : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

OnsDateTime

Onsen UI form field date/time component.

open class OnsDateTime : SimplePanel, DateFormControl, ObservableState<Date?>
(js)

OnsDateTimeInput

OnsenUI date/time input component.

open class OnsDateTimeInput : Widget, FormInput, ObservableState<Date?>
(js)

OnsNumber

Onsen UI form field number component.

open class OnsNumber : SimplePanel, NumberFormControl, ObservableState<Number?>
(js)

OnsNumberInput

OnsenUI number input component.

open class OnsNumberInput : Widget, FormInput, ObservableState<Number?>
(js)

OnsRadio

Onsen UI form field radio button component.

open class OnsRadio : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

OnsRadioGroup

The form field component rendered as a group of OnsenUI radio buttons with the same name attribute.

open class OnsRadioGroup : SimplePanel, StringFormControl, ObservableState<String?>
(js)

OnsRadioGroupInput

The input component rendered as a group of Onsen UI radio buttons with the same name attribute.

open class OnsRadioGroupInput : SimplePanel, FormInput, ObservableState<String?>
(js)

OnsRange

Onsen UI form field range component.

open class OnsRange : SimplePanel, NumberFormControl, ObservableState<Number?>
(js)

OnsSelect

Onsen UI form field select component.

open class OnsSelect : SimplePanel, StringFormControl, ObservableState<String?>
(js)

OnsSwitch

Onsen UI form field switch component.

open class OnsSwitch : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

Radio

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

open class Radio : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

RadioGroup

The form field component rendered as a group of HTML input type="radio" elements with the same name attribute.

open class RadioGroup : SimplePanel, StringFormControl, ObservableState<String?>
(js)

RadioGroupInput

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

open class RadioGroupInput : SimplePanel, FormInput, ObservableState<String?>
(js)

Range

The form field component for range input control.

open class Range : SimplePanel, NumberFormControl, ObservableState<Number?>
(js)

RangeInput

Range input component.

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

React

React component for KVision with support for state holder.

class React<S> : Widget, ObservableState<S>
(js)

ReduxStore

A class implementing redux pattern backed by the Redux Kotlin library.

class ReduxStore<S : Any, A : RAction> : ObservableState<S>
(js)

Select

The form field component for Select control.

open class Select : SimplePanel, StringFormControl, ObservableState<String?>
(js)

SelectInput

The basic component for Select control.

open class SelectInput : SimplePanel, FormInput, ObservableState<String?>
(js)

SelectRemote

The form field component for SelectRemote control.

open class SelectRemote<T : Any> : SimplePanel, StringFormControl, ObservableState<String?>
(js)

SimpleSelect

The form field component for SimpleSelect control.

open class SimpleSelect : SimplePanel, StringFormControl, ObservableState<String?>
(js)

SimpleSelectInput

Simple select component.

open class SimpleSelectInput : SimplePanel, FormInput, ObservableState<String?>
(js)

Spinner

The form field component for spinner control.

open class Spinner : SimplePanel, NumberFormControl, ObservableState<Number?>
(js)

SpinnerInput

The basic component for spinner control.

open class SpinnerInput : Widget, FormInput, ObservableState<Number?>