kvision / pl.treksoft.kvision.form.spinner

Package pl.treksoft.kvision.form.spinner

Spinner input component.

Types

ButtonsType

enum class ButtonsType

Spinner buttons layout types.

ForceType

enum class ForceType

Spinner force rounding types.

Spinner

open class Spinner : SimplePanel, NumberFormControl

The form field component for spinner control.

SpinnerInput

open class SpinnerInput : Widget, FormInput

The basic component for spinner control.

Functions

spinner

fun Container.spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = 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

DSL builder extension function.

spinnerInput

fun Container.spinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, buttonStyle: ButtonStyle? = null, classes: Set<String> = setOf(), init: (SpinnerInput.() -> Unit)? = null): SpinnerInput

DSL builder extension function.