Skip to main content

We have released KoliBri - Public UI v4 (Next). For the LTS version, see .

Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, wishes, or suggestions—quickly and easily.

Form

The Form component is used to enclose all input fields, to correctly position the information text for mandatory fields and to forward the submit and reset events.

Construction

Code

<kol-form _requiredText="Sternchen heißt Pflichtfeld.">
<kol-input-text _label="Vorname"></kol-input-text>
<kol-input-text _label="Nachname"></kol-input-text>
</kol-form>

Example

Properties

PropertyAttributeDescriptionTypeDefault
_errorList--A list of error objects that each describe an issue encountered in the form. Each error object contains a message and a selector for identifying the form element related to the error.ErrorListPropType[] | undefinedundefined
_on--Gibt die EventCallback-Funktionen für die Form-Events an.undefined | { onSubmit?: EventCallback<Event> | undefined; onReset?: EventCallback<Event> | undefined; }undefined
_requiredText_required-textDefines whether the mandatory-fields-hint should be shown. A string overrides the default text.boolean | string | undefinedtrue

Methods

focusErrorList

focusErrorList() => Promise<void>

Scrolls to the error list and focuses the first link.

Returns

Type: Promise<void>

Slots

SlotDescription
Inhalt der Form.

View example

Live editor