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

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.

invalidFeedback

abstract val invalidFeedback: InvalidFeedback

Invalid feedback component.

name

open var name: String?

The name attribute of the generated HTML input element.

size

open var size: InputSize?

Input control field size.

validationStatus

open var validationStatus: ValidationStatus?

Input control validation status.

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.

styleForHorizontalFormPanel

open fun styleForHorizontalFormPanel(horizontalRatio: FormHorizontalRatio): Unit

Style form control element for horizontal form panel.

styleForInlineFormPanel

open fun styleForInlineFormPanel(): Unit

Style form control element for inline form panel.

styleForVerticalFormPanel

open fun styleForVerticalFormPanel(): Unit

Style form control element for vertical form panel.

Extension Functions

addBsBgColor

fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit

addBsBorder

fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit

addBsClearfix

fun Component.addBsClearfix(): Unit

addBsColor

fun Component.addBsColor(bsColor: BsColor): Unit

addBsRounded

fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

removeBsBgColor

fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit

removeBsBorder

fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit

removeBsClearfix

fun Component.removeBsClearfix(): Unit

removeBsColor

fun Component.removeBsColor(bsColor: BsColor): Unit

removeBsRounded

fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit

Inheritors

DateTime

open class DateTime : SimplePanel, DateFormControl

Form field date/time chooser component.