open class SpinnerInput : Widget, FormInput
The basic component for spinner control.
(js)
<init> |
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> = setOf()) |
(js)
autofocus |
Determines if the spinner is automatically focused. var autofocus: Boolean? |
(js)
buttonStyle |
The style of the up/down buttons. var buttonStyle: ButtonStyle? |
(js)
buttonsType |
spinner buttons type val buttonsType: ButtonsType |
(js)
decimals |
Number of decimal digits value. var decimals: Int |
(js)
disabled |
Determines if the field is disabled. open var disabled: Boolean |
(js)
forceType |
Spinner force rounding type. var forceType: ForceType |
(js)
max |
Maximal value. var max: Number? |
(js)
min |
Minimal value. var min: Number? |
(js)
name |
The name attribute of the generated HTML input element. open var name: String? |
(js)
placeholder |
The placeholder for the spinner input. var placeholder: String? |
(js)
readonly |
Determines if the spinner is read-only. var readonly: Boolean? |
(js)
size |
The size of the input. open var size: InputSize? |
(js)
startValue |
The value attribute of the generated HTML input element. var startValue: Number? |
(js)
step |
Step value. var step: Number |
(js)
validationStatus |
The validation status of the input. open var validationStatus: ValidationStatus? |
(js)
value |
Spinner value. var value: Number? |
(js)
afterDestroy |
Method called after destroying Snabbdom vnode. open fun afterDestroy(): Unit |
(js)
afterInsert |
Method called after inserting Snabbdom vnode into the DOM. open fun afterInsert(node: VNode): Unit |
(js)
blur |
Makes the input element blur. open fun blur(): Unit |
(js)
changeValue |
open fun changeValue(): Unit |
(js)
focus |
Makes the input element focused. open fun focus(): Unit |
(js)
getSnAttrs |
Returns list of element attributes in the form of a List. open fun getSnAttrs(): List<StringPair> |
(js)
getSnClass |
Returns list of CSS class names for current widget in the form of a List. open fun getSnClass(): List<StringBoolPair> |
(js)
getValueAsString |
Returns the value of the spinner as a String. fun getValueAsString(): String? |
(js)
render |
Renders current component as a Snabbdom vnode. open fun render(): VNode |
(js)
spinDown |
Change value in minus. fun spinDown(): SpinnerInput |
(js)
spinUp |
Change value in plus. fun spinUp(): SpinnerInput |
(js)
changeFlow |
val <T : Widget> T.changeFlow: Flow<T> |
(js)
clickFlow |
val <T : Widget> T.clickFlow: Flow<T> |
(js)
inputFlow |
val <T : Widget> T.inputFlow: Flow<T> |
(js)
addBsBgColor |
fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit |
(js)
addBsBorder |
fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit |
(js)
addBsClearfix |
fun Component.addBsClearfix(): Unit |
(js)
addBsColor |
fun Component.addBsColor(bsColor: BsColor): Unit |
(js)
addBsRounded |
fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit |
(js)
contextMenu |
DSL builder extension function. fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu |
(js)
eventFlow |
fun <T : Widget> T.eventFlow(event: String): Flow<Pair<T, Event>> |
(js)
onEvent |
fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int |
(js)
removeBsBgColor |
fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit |
(js)
removeBsBorder |
fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit |
(js)
removeBsClearfix |
fun Component.removeBsClearfix(): Unit |
(js)
removeBsColor |
fun Component.removeBsColor(bsColor: BsColor): Unit |
(js)
removeBsRounded |
fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit |
(js)
setContextMenu |
Sets context menu for the current widget. fun Widget.setContextMenu(contextMenu: ContextMenu): Widget |
(js)
style |
DSL builder extension function. fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style |