SpinnerInput

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

The basic component for spinner control.

Parameters

value

spinner value

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

buttonStyle

the style of the up/down buttons

decimalSeparator

the decimal separator (default: auto detect)

className

CSS class names

init

an initializer extension function

Constructors

SpinnerInput
Link copied to clipboard
fun 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: <ERROR CLASS>? = null, decimalSeparator: String? = I18n.detectDecimalSeparator(), className: String? = null, init: SpinnerInput.() -> Unit? = null)

Types

Companion
Link copied to clipboard
object Companion

Functions

afterDestroy
Link copied to clipboard
open fun afterDestroy()
afterInsert
Link copied to clipboard
open fun afterInsert(node: <ERROR CLASS>)
bindAllJQueryListeners
Link copied to clipboard
open fun bindAllJQueryListeners()
buildAttributeSet
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <ERROR CLASS>)
buildClassSet
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <ERROR CLASS>)
getState
Link copied to clipboard
open fun getState(): Number?
getValueAsString
Link copied to clipboard
fun getValueAsString(): String?

Returns the value of the spinner as a String.

removeAllJQueryListeners
Link copied to clipboard
open fun removeAllJQueryListeners()
render
Link copied to clipboard
open fun render(): <ERROR CLASS>
setState
Link copied to clipboard
open fun setState(state: Number?)
spinDown
Link copied to clipboard
fun spinDown(): SpinnerInput

Change value in minus.

spinUp
Link copied to clipboard
fun spinUp(): SpinnerInput

Change value in plus.

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.

disabled
Link copied to clipboard
open var disabled: <ERROR CLASS>

Determines if the field is disabled.

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

Spinner force rounding type.

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

Maximal value.

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

Minimal value.

name
Link copied to clipboard
open var name: String?

The name attribute of the generated HTML input element.

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.

size
Link copied to clipboard
open var size: <ERROR CLASS>?

The size of the input.

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.

validationStatus
Link copied to clipboard
open var validationStatus: <ERROR CLASS>?

The validation status of the input.

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

Spinner value.