Package io. kvision. form
Convenient forms implementation, with support for many different input components and easy to define validation.
Types
BoolFormControl
Link copied to clipboard
DateFormControl
Link copied to clipboard
FieldLabel
Link copied to clipboard
open class FieldLabel(forId: String, content: String?, rich: Boolean, classes: Set<String>, init: FieldLabel.() -> Unit?) : Tag
Content copied to clipboard
FormControl
Link copied to clipboard
FormEnctype
Link copied to clipboard
FormHorizontalRatio
Link copied to clipboard
FormMethod
Link copied to clipboard
FormPanel
Link copied to clipboard
open class FormPanel<K : Any>(method: FormMethod?, action: String?, enctype: FormEnctype?, type: FormType?, condensed: Boolean, horizRatio: FormHorizontalRatio, classes: Set<String>, serializer: <ERROR CLASS><K>?, customSerializers: Map<KClass<*>, <ERROR CLASS><out <ERROR CLASS>>>?) : SimplePanel
Content copied to clipboard
FormTarget
Link copied to clipboard
GenericFormComponent
Link copied to clipboard
GenericFormControl
Link copied to clipboard
GenericNonNullableFormControl
Link copied to clipboard
interface GenericNonNullableFormControl<T> : FormControl, GenericFormComponent<T>
Content copied to clipboard
InvalidFeedback
Link copied to clipboard
KFilesFormControl
Link copied to clipboard
NumberFormControl
Link copied to clipboard
StringFormControl
Link copied to clipboard
ValidationStatus
Link copied to clipboard
Functions
fieldLabel
Link copied to clipboard
fun Container.fieldLabel(forId: String, content: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: FieldLabel.() -> Unit? = null): FieldLabel
Content copied to clipboard
fun <S> Container.fieldLabel(state: ObservableState<S>, forId: String, content: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: FieldLabel.(S) -> Unit): FieldLabel
Content copied to clipboard
form
Link copied to clipboard
fun Container.form(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String>? = null, className: String? = null, init: FormPanel<Any>.() -> Unit? = null): FormPanel<Any>
Content copied to clipboard
fun <S> Container.form(state: ObservableState<S>, method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String>? = null, className: String? = null, init: FormPanel<Any>.(S) -> Unit): FormPanel<Any>
Content copied to clipboard
formPanel
Link copied to clipboard
inline fun <K : Any> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String>? = null, className: String? = null, customSerializers: Map<KClass<*>, <ERROR CLASS><out <ERROR CLASS>>>? = null, noinline init: FormPanel<K>.() -> Unit? = null): FormPanel<K>
Content copied to clipboard
inline fun <K : Any, S> Container.formPanel(state: ObservableState<S>, method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String>? = null, className: String? = null, customSerializers: Map<KClass<*>, <ERROR CLASS><out <ERROR CLASS>>>? = null, noinline init: FormPanel<K>.(S) -> Unit): FormPanel<K>
Content copied to clipboard