as Alert
Convenience extension to display a ComponentValidationMessage as an alert. The alert's severity and content are determined from the validation message's properties. Custom styling via the styling parameter is optionally supported, as well as any other customization via the build-lambda.
Parameters
RenderContext to render the alert in
a lambda expression for declaring the styling of the toast using fritz2's styling DSL
a lambda expression for setting up the component itself
Convenience extension to display a ComponentValidationMessage as an alert. The alert's severity and content are determined from the validation message's properties. Customization of the underlying AlertComponent is supported via the build-lambda. Custom styling can be applyied via the overloaded ComponentValidationMessage.asAlert method.
Parameters
RenderContext to render the alert in
a lambda expression for setting up the component itself