SiFormValidationTooltipDirective documentation¶
selector
[siFormValidationTooltip]
Directive to show a tooltip with validation errors of a form control.
In general, si-form-item
should be used. This directive is intended only for cases where the tooltip cannot be shown inline. This is typically the case for tables and lists where the validation message would break the layout.
Example:
<input siFormValidationTooltip [formControl]="control" />
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
formErrorMapper ¶ | SiFormValidationErrorMapper |
Types Documentation¶
Interface for form error mapper. It resolves a key to either a translatable string or function which is called with the validation error for its key and should return a translatable string. | |
---|---|
| |
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
---|
Translatable import imported from @siemens/element-translate-ng |
---|
Except where otherwise noted, content on this site is licensed under MIT License.