Component Validation Message
data class ComponentValidationMessage(path: String, severity: Severity, message: String, details: String?) : ValidationMessage
Content copied to clipboard
Special ValidationMessage for fritz2 components.
Important: path 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
path
location of the validated field in model
severity
used for rendering the ValidationMessage
message
contains the message
details
optional details for extending the message
Constructors
ComponentValidationMessage
Link copied to clipboard
fun ComponentValidationMessage(path: String, severity: Severity, message: String, details: String? = null)
Content copied to clipboard
location of the validated field in model
Functions
Properties
Extensions
asAlert
Link copied to clipboard
fun ComponentValidationMessage.asAlert(styling: BasicParams.() -> Unit = { }, renderContext: RenderContext, build: AlertComponent.() -> Unit = { })
Content copied to clipboard
Convenience extension function to display a ComponentValidationMessage as an alert.
fun ComponentValidationMessage.asAlert(renderContext: RenderContext, build: AlertComponent.() -> Unit = { })
Content copied to clipboard
Convenience extension to display a ComponentValidationMessage as an alert.