kvision / pl.treksoft.kvision.form / FormControl

FormControl

(js) interface FormControl : Component

Base interface of a form control.

Properties

(js)

disabled

Determines if the field is disabled.

open var disabled: Boolean
(js)

flabel

Form field label.

abstract val flabel: FieldLabel
(js)

input

The actual input component.

abstract val input: FormInput
(js)

invalidFeedback

Invalid feedback component.

abstract val invalidFeedback: InvalidFeedback
(js)

name

The name attribute of the generated HTML input element.

open var name: String?
(js)

size

Input control field size.

open var size: InputSize?
(js)

validationStatus

Input control validation status.

open var validationStatus: ValidationStatus?
(js)

validatorError

Validator error message.

open var validatorError: String?

Functions

(js)

blur

Makes the input element blur.

abstract fun blur(): Unit
(js)

focus

Makes the input element focused.

abstract fun focus(): Unit
(js)

getValue

Returns the value of the control.

abstract fun getValue(): Any?
(js)

getValueAsString

Returns the value of the control as a String.

abstract fun getValueAsString(): String?
(js)

setValue

Sets the value of the control.

abstract fun setValue(v: Any?): Unit
(js)

styleForHorizontalFormPanel

Style form control element for horizontal form panel.

open fun styleForHorizontalFormPanel(horizontalRatio: FormHorizontalRatio): Unit
(js)

styleForInlineFormPanel

Style form control element for inline form panel.

open fun styleForInlineFormPanel(): Unit
(js)

styleForVerticalFormPanel

Style form control element for vertical form panel.

open fun styleForVerticalFormPanel(): Unit

Extension Functions

(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)

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

Inheritors

(js)

BoolFormControl

Base interface of a form control with a boolean value.

interface BoolFormControl : FormControl
(js)

DateFormControl

Base interface of a form control with a date value.

interface DateFormControl : FormControl
(js)

KFilesFormControl

Base interface of a form control with a list of files value.

interface KFilesFormControl : FormControl
(js)

NumberFormControl

Base interface of a form control with a numeric value.

interface NumberFormControl : FormControl
(js)

StringFormControl

Base interface of a form control with a text value.

interface StringFormControl : FormControl