Component Validation Message
data class ComponentValidationMessage(id: String, severity: Severity, message: String, details: String?) : ValidationMessage
Content copied to clipboard
Special ValidationMessage for fritz2 components.
Important: id should be generated by using the inspect function in your Validator. By default the validation fails if one or more ComponentValidationMessages have a severity of Severity.Error. You can override the isError method to change this behavior.
Parameters
details
optional details for extending the message
id
generated by Inspector
message
contains the message
severity
used for rendering the ValidationMessage
Constructors
ComponentValidationMessage
Link copied to clipboard
fun ComponentValidationMessage(id: String, severity: Severity, message: String, details: String? = null)
Content copied to clipboard
generated by Inspector
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
Properties
Extensions
asAlert
Link copied to clipboard
fun ComponentValidationMessage.asAlert(renderContext: RenderContext, size: FormSizes.() -> Style<BasicParams> = { normal }, stacking: AlertStacking.() -> Style<BasicParams> = { separated })
Content copied to clipboard
Convenience extension to display a ComponentValidationMessage as an alert.