Package dev.fritz2.components.validation

Types

ComponentValidationMessage
Link copied to clipboard
common
data class ComponentValidationMessage(id: String, severity: Severity, message: String, details: String?) : ValidationMessage
Special ValidationMessage for fritz2 components.
ComponentValidator
Link copied to clipboard
common
abstract class ComponentValidator<D, T> : Validator<D, ComponentValidationMessage, T>
Special Validator for fritz2 components which uses the ComponentValidationMessage internally.
Severity
Link copied to clipboard
common
enum Severity : Enum<Severity>
Enum which specify the Severity of ComponentValidationMessage.
WithValidator
Link copied to clipboard
js
interface WithValidator<D, T> : Store<D>
Interface which RootStores can implement to mark them that they have a ComponentValidator.

Functions

errorMessage
Link copied to clipboard
common
fun errorMessage(id: String, message: String, details: String? = null): ComponentValidationMessage
infoMessage
Link copied to clipboard
common
fun infoMessage(id: String, message: String, details: String? = null): ComponentValidationMessage
successMessage
Link copied to clipboard
common
fun successMessage(id: String, message: String, details: String? = null): ComponentValidationMessage
validationMessage
Link copied to clipboard
js
fun <D> Store<D>.validationMessage(): Flow<ComponentValidationMessage?>?
Finds the proper ComponentValidationMessage for the given Store.
validationMessages
Link copied to clipboard
js
fun <D> Store<D>.validationMessages(): Flow<List<ComponentValidationMessage>>?
Filters all proper ComponentValidationMessages for the given Store.
warningMessage
Link copied to clipboard
common
fun warningMessage(id: String, message: String, details: String? = null): ComponentValidationMessage