Spinner

open class Spinner(    value: Number? = null,     name: String? = null,     min: Number? = null,     max: Number? = null,     step: Number = DEFAULT_STEP,     decimals: Int = 0,     val buttonsType: ButtonsType = ButtonsType.VERTICAL,     forceType: ForceType = ForceType.NONE,     buttonStyle: <Error class: unknown class>? = null,     decimalSeparator: String? = I18n.detectDecimalSeparator(),     label: String? = null,     rich: Boolean = false,     init: Spinner.() -> Unit? = null)

The form field component for spinner control.

Parameters

value

spinner value

name

the name attribute of the generated HTML input element

min

minimal value

max

maximal value

step

step value (default 1)

decimals

number of decimal digits (default 0)

buttonsType

spinner buttons type

forceType

spinner force rounding type

decimalSeparator

the decimal separator (default: auto detect)

label

label text bound to the input element

rich

determines if label can contain HTML code

init

an initializer extension function

Constructors

Link copied to clipboard
fun 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: <Error class: unknown class>? = null,     decimalSeparator: String? = I18n.detectDecimalSeparator(),     label: String? = null,     rich: Boolean = false,     init: Spinner.() -> Unit? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun blur()
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun focus()
Link copied to clipboard
open fun getState(): Number?
Link copied to clipboard
open fun getValueAsString(): String?
Link copied to clipboard
open fun removeEventListener(id: Int): <Error class: unknown class>
Link copied to clipboard
open fun removeEventListeners(): <Error class: unknown class>
Link copied to clipboard
open fun <T> setEventListener(block: <Error class: unknown class><T>.() -> Unit): Int
Link copied to clipboard
open fun setState(state: Number?)
Link copied to clipboard
open fun spinDown(): Spinner

Change value in minus.

Link copied to clipboard
open fun spinUp(): Spinner

Change value in plus.

Link copied to clipboard
open fun styleForHorizontalFormPanel(horizontalRatio: <Error class: unknown class>)
Link copied to clipboard
open fun subscribe(observer: (Number?) -> Unit): () -> Unit

Properties

Link copied to clipboard
var autofocus: Boolean?

Determines if the spinner is automatically focused.

Link copied to clipboard
var buttonStyle: <Error class: unknown class>

The style of the up/down buttons.

Link copied to clipboard
val buttonsType: ButtonsType
Link copied to clipboard
var decimals: <Error class: unknown class>

Number of decimal digits value.

Link copied to clipboard
var decimalSeparator: <Error class: unknown class>

The decimal separator.

Link copied to clipboard
val flabel: <Error class: unknown class>
Link copied to clipboard
var forceType: <Error class: unknown class>

Spinner force rounding type.

Link copied to clipboard
val input: SpinnerInput
Link copied to clipboard
val invalidFeedback: <Error class: unknown class>
Link copied to clipboard
var label: <Error class: unknown class>

The label text bound to the spinner input element.

Link copied to clipboard
var max: <Error class: unknown class>

Maximal value.

Link copied to clipboard
var min: <Error class: unknown class>

Minimal value.

Link copied to clipboard
var placeholder: String?

The placeholder for the spinner input.

Link copied to clipboard
var readonly: Boolean?

Determines if the spinner is read-only.

Link copied to clipboard
var rich: <Error class: unknown class>

Determines if label can contain HTML code.

Link copied to clipboard
var startValue: <Error class: unknown class>

The value attribute of the generated HTML input element.

Link copied to clipboard
var step: <Error class: unknown class>

Step value.

Link copied to clipboard
open var validatorError: String?
Link copied to clipboard
open var value: <Error class: unknown class>

Spinner value.