Skip to main content

Custom field

Since 2.6.0

Development

With the help of ix-custom-field you are able to create form fields that can host any component / markup, while still having access to all validation states as well as ascociated explanatory texts like helper-text, valid-text, info-text, warning-text or invalid-text. The component will check if any of its children has one of these classes set: ix-valid, ix-info, ix-warning or ix-invalid If this is the case the custom field will display the corresponding text.

Custom fields can be used to migrate from the existing input validation (native inputs) to the new validation / froms concept.

Basic

PreviewAngularReactVueJavaScript

Validation

PreviewAngularReactVueJavaScript

API

Properties

Name
Description and specifications
helperText
Show text below the field component which show additional information
Attribute:
helper-text
Type:
string | undefined
infoText
Info text for the field component
Attribute:
info-text
Type:
string | undefined
invalidText
Error text for the field component
Attribute:
invalid-text
Type:
string | undefined
label
Label for the field component
Attribute:
label
Type:
string | undefined
required
A value is required or must be checked for the form to be submittable
Attribute:
required
Type:
boolean
Default:
false
showTextAsTooltip
Show helper, info, warning, error and valid text as tooltip
Attribute:
show-text-as-tooltip
Type:
boolean | undefined
validText
Valid text for the field component
Attribute:
valid-text
Type:
string | undefined
warningText
Warning text for the field component
Attribute:
warning-text
Type:
string | undefined

Events

No events available for this component.