NumberFormControl

Base interface of a form control with a numeric value.

Functions

Link copied to clipboard
abstract fun addAfterDestroyHook(hook: () -> Unit): Boolean

The supplied function is called after the component is removed from the DOM.

Link copied to clipboard
abstract fun addAfterInsertHook(hook: (VNode) -> Unit): Boolean

The supplied function is called after the component is inserted into the DOM.

Link copied to clipboard
abstract fun addBeforeDisposeHook(hook: () -> Unit): Boolean

The supplied function is called before the component is disposed.

Link copied to clipboard
abstract fun addCssClass(css: String): Component

Adds given value to the set of CSS classes generated in html code of current component.

Link copied to clipboard
abstract fun addCssStyle(css: Style): Component

Adds given style object to the set of CSS classes generated in html code of current component.

Link copied to clipboard

Adds given value to the set of CSS classes generated in html code of parent component.

Link copied to clipboard

Adds given style object to the set of CSS classes generated in html code of parent component.

Link copied to clipboard
open fun blur()

Makes the element blur.

Link copied to clipboard
open fun focus()

Makes the element focused.

Link copied to clipboard
abstract fun getAttribute(name: String): String?

Returns the value of an additional attribute.

Link copied to clipboard
abstract fun getElement(): <Error class: unknown class>?

Returns DOM element bound to the current component.

Link copied to clipboard
abstract fun getElementD(): dynamic

Returns DOM element bound to the current component as a dynamic type.

Link copied to clipboard
open override fun getValue(): Number?

Returns the value of the control.

Link copied to clipboard
open override fun getValueAsString(): String?

Returns the value of the control as a String.

Link copied to clipboard
abstract fun hasCssClass(css: String): Boolean

Checks whether the given value is present in the set of CSS classes.

Link copied to clipboard
abstract fun removeAttribute(name: String): Component

Removes the value of additional attribute.

Link copied to clipboard
abstract fun removeCssClass(css: String): Component

Removes given value from the set of CSS classes generated in html code of current component.

Link copied to clipboard
abstract fun removeCssStyle(css: Style): Component

Removes given style object from the set of CSS classes generated in html code of current component.

Link copied to clipboard

Removes given value from the set of CSS classes generated in html code of parent component.

Link copied to clipboard

Removes given style object from the set of CSS classes generated in html code of parent component.

Link copied to clipboard
abstract fun setAttribute(name: String, value: String): Component

Sets the value of additional attribute.

Link copied to clipboard
open override fun setValue(v: Any?)

Sets the value of the control.

Link copied to clipboard
abstract fun <T> singleRender(block: () -> T): T

Executes given function within a single rendering process.

Link copied to clipboard
abstract fun singleRenderAsync(block: () -> Unit)

Executes given function within a single rendering process asynchronously.

Link copied to clipboard

Style form control element for horizontal form panel.

Link copied to clipboard

Style form control element for inline form panel.

Link copied to clipboard

Style form control element for vertical form panel.

Link copied to clipboard
abstract fun subscribe(observer: (Number?) -> Unit): () -> Unit

Properties

Link copied to clipboard
open var disabled: Boolean

Determines if the field is disabled.

Link copied to clipboard
abstract val flabel: FieldLabel

Form field label.

Link copied to clipboard
abstract val input: FormInput

The actual input component.

Link copied to clipboard

Invalid feedback component.

Link copied to clipboard
open var name: String?

The name attribute of the generated HTML input element.

Link copied to clipboard
abstract var parent: Container?

Parent of the current component.

Link copied to clipboard
open var size: InputSize?

Input control field size.

Link copied to clipboard

Input control validation status.

Link copied to clipboard

Validator error message.

Link copied to clipboard
abstract var value: Number?

Generic value.

Link copied to clipboard
abstract var visible: Boolean

Visibility state of the current component.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
Link copied to clipboard
fun Component.addBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.addBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard
fun Component.getElementJQuery(): <Error class: unknown class>?

Returns JQuery element bound to the current component.

Link copied to clipboard

Returns JQuery element bound to the current component as a dynamic type.

Link copied to clipboard
Link copied to clipboard
fun Component.removeBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.removeBsRounded(vararg bsRounded: BsRounded)