Severity Mixin
Default implementation of the SeverityProperties interface in order to apply this as mixin for a component
Constructors
Functions
Link copied to clipboard
open fun severity(value: SeverityProperties.SeverityContext.() -> Severity)
Content copied to clipboard
Property to manage the severity value of the component.
Link copied to clipboard
open fun severityClassOf(severityStyle: SeverityStyles): Flow<StyleClass>
Content copied to clipboard
This function manages the task to map a value of the Severity enumeration to a corresponding style defined within the SeverityStyles interface. The severity itself is taken from the severity property, so only the styling interface's implementation has to be injected: