kvision / pl.treksoft.kvision.form / DateFormControl

DateFormControl

interface DateFormControl : FormControl

Base interface of a form control with a date value.

Properties

value

abstract var value: Date?

Date value.

Inherited 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.

Functions

getValue

open fun getValue(): Date?

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.

Inheritors

DateTime

open class DateTime : SimplePanel, DateFormControl

Form field date/time chooser component.