interface FormControl : Component
Base interface of a form control.
open var disabled: Boolean
Determines if the field is disabled. |
|
abstract val flabel: FieldLabel
Form field label. |
|
abstract val input: FormInput
The actual input component. |
|
abstract val invalidFeedback: InvalidFeedback
Invalid feedback component. |
|
open var name: String?
The name attribute of the generated HTML input element. |
|
open var size: InputSize?
Input control field size. |
|
open var validationStatus: ValidationStatus?
Input control validation status. |
|
open var validatorError: String?
Validator error message. |
abstract var parent: Container?
Parent of the current component. |
|
abstract var visible: Boolean
Visibility state of the current component. |
abstract fun blur(): Unit
Makes the input element blur. |
|
abstract fun focus(): Unit
Makes the input element focused. |
|
abstract fun getValue(): Any?
Returns the value of the control. |
|
abstract fun getValueAsString(): String?
Returns the value of the control as a String. |
|
abstract fun setValue(v: Any?): Unit
Sets the value of the control. |
|
open fun styleForHorizontalFormPanel(horizontalRatio: FormHorizontalRatio): Unit
Style form control element for horizontal form panel. |
|
open fun styleForInlineFormPanel(): Unit
Style form control element for inline form panel. |
|
open fun styleForVerticalFormPanel(): Unit
Style form control element for vertical form panel. |
abstract fun addCssClass(css: String): Component
Adds given value to the set of CSS classes generated in html code of current component. |
|
abstract fun addCssStyle(css: Style): Component
Adds given style object to the set of CSS classes generated in html code of current component. |
|
abstract fun addSurroundingCssClass(css: String): Component
Adds given value to the set of CSS classes generated in html code of parent component. |
|
abstract fun addSurroundingCssStyle(css: Style): Component
Adds given style object to the set of CSS classes generated in html code of parent component. |
|
abstract fun getAttribute(name: String): String?
Returns the value of an additional attribute. |
|
abstract fun getElement(): Node?
Returns DOM element bound to the current component. |
|
abstract fun getElementJQuery(): JQuery?
Returns JQuery element bound to the current component. |
|
abstract fun getElementJQueryD(): dynamic
Returns JQuery element bound to the current component as a dynamic type. |
|
abstract fun removeAttribute(name: String): Component
Removes the value of additional attribute. |
|
abstract fun removeCssClass(css: String): Component
Removes given value from the set of CSS classes generated in html code of current component. |
|
abstract fun removeCssStyle(css: Style): Component
Removes given style object from the set of CSS classes generated in html code of current component. |
|
abstract fun removeSurroundingCssClass(css: String): Component
Removes given value from the set of CSS classes generated in html code of parent component. |
|
abstract fun removeSurroundingCssStyle(css: Style): Component
Removes given style object from the set of CSS classes generated in html code of parent component. |
|
abstract fun setAttribute(name: String, value: String): Component
Sets the value of additional attribute. |
fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit |
|
fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit |
|
fun Component.addBsClearfix(): Unit |
|
fun Component.addBsColor(bsColor: BsColor): Unit |
|
fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit |
|
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit |
|
fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit |
|
fun Component.removeBsClearfix(): Unit |
|
fun Component.removeBsColor(bsColor: BsColor): Unit |
|
fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit |
interface BoolFormControl : FormControl
Base interface of a form control with a boolean value. |
|
interface DateFormControl : FormControl
Base interface of a form control with a date value. |
|
interface KFilesFormControl : FormControl
Base interface of a form control with a list of files value. |
|
interface NumberFormControl : FormControl
Base interface of a form control with a numeric value. |
|
interface StringFormControl : FormControl
Base interface of a form control with a text value. |