SeverityMixin

class SeverityMixin : SeverityProperties

Default implementation of the SeverityProperties interface in order to apply this as mixin for a component

Constructors

Link copied to clipboard
fun SeverityMixin()

Functions

Link copied to clipboard
open fun severity(value: SeverityProperties.SeverityContext.() -> Severity)

Property to manage the severity value of the component.

Link copied to clipboard
open fun severityClassOf(severityStyle: SeverityStyles): Flow<StyleClass>

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:

Properties

Link copied to clipboard
open override val severity: NullableDynamicComponentProperty<Severity?>