kvision / pl.treksoft.kvision.form / FormControl

FormControl

interface FormControl : Component

Base interface of a form control.

Properties

disabled

abstract var disabled: Boolean

Determines if the field is disabled.

flabel

abstract val flabel: FieldLabel

Form field label.

input

abstract val input: Component

The actual input component.

size

abstract var size: InputSize?

Input control size.

validationInfo

abstract val validationInfo: HelpBlock

Validation info component.

validatorError

open var validatorError: String?

Validator error message.

Inherited Properties

parent

abstract var parent: Component?

Parent of the current component.

visible

abstract var visible: Boolean

Visibility state of the current component.

Functions

getValue

abstract fun getValue(): Any?

Returns the value of the control.

getValueAsString

abstract fun getValueAsString(): String?

Returns the value of the control as a String.

setValue

abstract fun setValue(v: Any?): Unit

Sets the value of the control.

Inherited Functions

addCssClass

abstract fun addCssClass(css: String): Component

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

addSurroundingCssClass

abstract fun addSurroundingCssClass(css: String): Component

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

getElement

abstract fun getElement(): Node?

Returns DOM element bound to the current component.

getElementJQuery

abstract fun getElementJQuery(): JQuery?

Returns JQuery element bound to the current component.

getElementJQueryD

abstract fun getElementJQueryD(): dynamic

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

removeCssClass

abstract fun removeCssClass(css: String): Component

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

removeSurroundingCssClass

abstract fun removeSurroundingCssClass(css: String): Component

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

Inheritors

BoolFormControl

interface BoolFormControl : FormControl

Base interface of a form control with a boolean value.

DateFormControl

interface DateFormControl : FormControl

Base interface of a form control with a date value.

NumberFormControl

interface NumberFormControl : FormControl

Base interface of a form control with a numeric value.

StringFormControl

interface StringFormControl : FormControl

Base interface of a form control with a text value.