Spinner

open class Spinner(value: Number?, name: String?, min: Number?, max: Number?, step: Number, decimals: Int, buttonsType: ButtonsType, forceType: ForceType, buttonStyle: <ERROR CLASS>?, decimalSeparator: String?, label: String?, rich: Boolean, init: Spinner.() -> Unit?)

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

Spinner
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>? = null, decimalSeparator: String? = I18n.detectDecimalSeparator(), label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit? = null)

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Change value in minus.

spinUp
Link copied to clipboard
open fun spinUp(): Spinner

Change value in plus.

styleForHorizontalFormPanel
Link copied to clipboard
open fun styleForHorizontalFormPanel(horizontalRatio: <ERROR CLASS>)
subscribe
Link copied to clipboard
open fun subscribe(observer: (Number?) -> Unit): () -> Unit

Properties

autofocus
Link copied to clipboard
var autofocus: Boolean?

Determines if the spinner is automatically focused.

buttonStyle
Link copied to clipboard
var buttonStyle: <ERROR CLASS>

The style of the up/down buttons.

buttonsType
Link copied to clipboard
val buttonsType: ButtonsType
decimals
Link copied to clipboard
var decimals: <ERROR CLASS>

Number of decimal digits value.

decimalSeparator
Link copied to clipboard
var decimalSeparator: <ERROR CLASS>

The decimal separator.

flabel
Link copied to clipboard
val flabel: <ERROR CLASS>
forceType
Link copied to clipboard
var forceType: <ERROR CLASS>

Spinner force rounding type.

input
Link copied to clipboard
val input: SpinnerInput
invalidFeedback
Link copied to clipboard
val invalidFeedback: <ERROR CLASS>
label
Link copied to clipboard
var label: <ERROR CLASS>

The label text bound to the spinner input element.

max
Link copied to clipboard
var max: <ERROR CLASS>

Maximal value.

min
Link copied to clipboard
var min: <ERROR CLASS>

Minimal value.

placeholder
Link copied to clipboard
var placeholder: String?

The placeholder for the spinner input.

readonly
Link copied to clipboard
var readonly: Boolean?

Determines if the spinner is read-only.

rich
Link copied to clipboard
var rich: <ERROR CLASS>

Determines if label can contain HTML code.

startValue
Link copied to clipboard
var startValue: <ERROR CLASS>

The value attribute of the generated HTML input element.

step
Link copied to clipboard
var step: <ERROR CLASS>

Step value.

validatorError
Link copied to clipboard
open var validatorError: String?
value
Link copied to clipboard
open var value: <ERROR CLASS>

Spinner value.