kvision / pl.treksoft.kvision.form.spinner

Package pl.treksoft.kvision.form.spinner

Spinner input component.

Types

(js)

ButtonsType

Spinner buttons layout types.

enum class ButtonsType
(js)

ForceType

Spinner force rounding types.

enum class ForceType
(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?>

Functions

(js)

spinner

DSL builder extension function.

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
(js)

spinnerInput

DSL builder extension function.

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>? = null, className: String? = null, init: (SpinnerInput.() -> Unit)? = null): SpinnerInput