kvision / pl.treksoft.kvision.form / FormInput

FormInput

interface FormInput : Component

Properties

disabled

abstract var disabled: Boolean

Determines if the field is disabled.

name

abstract var name: String?

The name attribute of the generated HTML input element.

size

abstract var size: InputSize?

Input control field size.

Inherited Properties

parent

abstract var parent: Container?

Parent of the current component.

visible

abstract var visible: Boolean

Visibility state of the current component.

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

AbstractTextInput

abstract class AbstractTextInput : Widget, FormInput

Base class for basic text components.

CheckInput

open class CheckInput : Widget, FormInput

The basic input component rendered as HTML input type="checkbox" or input type="radio".

DateTimeInput

open class DateTimeInput : Widget, FormInput

Basic date/time chooser component.

SelectInput

open class SelectInput : SimplePanel, FormInput

The basic component for Select control.

SpinnerInput

open class SpinnerInput : Widget, FormInput

The basic component for spinner control.

UploadInput

open class UploadInput : Widget, FormInput

The file upload component.