kvision / pl.treksoft.kvision.form / StringFormControl

StringFormControl

interface StringFormControl : FormControl

Base interface of a form control with a text value.

Properties

value

abstract var value: String?

Text value.

Inherited Properties

disabled

open var disabled: Boolean

Determines if the field is disabled.

flabel

abstract val flabel: FieldLabel

Form field label.

input

abstract val input: FormInput

The actual input component.

name

open var name: String?

The name attribute of the generated HTML input element.

size

open var size: InputSize?

Input control field size.

validationInfo

abstract val validationInfo: HelpBlock

Validation info component.

validatorError

open var validatorError: String?

Validator error message.

Functions

getValue

open fun getValue(): String?

Returns the value of the control.

getValueAsString

open fun getValueAsString(): String?

Returns the value of the control as a String.

setValue

open fun setValue(v: Any?): Unit

Sets the value of the control.

Inherited Functions

blur

abstract fun blur(): Unit

Makes the input element blur.

focus

abstract fun focus(): Unit

Makes the input element focused.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

Inheritors

AbstractText

abstract class AbstractText : SimplePanel, StringFormControl

Base class for form field text components.

RadioGroup

open class RadioGroup : SimplePanel, StringFormControl

The form field component rendered as a group of HTML input type="radio" elements with the same name attribute.

Select

open class Select : SimplePanel, StringFormControl

The form field component for Select control.

SelectRemote

open class SelectRemote<T : Any> : SimplePanel, StringFormControl

The form field component for SelectRemote control.

SimpleSelect

open class SimpleSelect : SimplePanel, StringFormControl

The form field component for SimpleSelect control.