SeverityProperties

interface SeverityProperties

This interface defines convenience properties and helper functions to easily apply Severity based behaviour to a component.

The property severity is offered in order to hold the current severity value.

In order to reactively apply an appropriate styling based upon the current severity value of the component - changing the background color for example - the helper function severityClassOf helps to choose the corresponding style bades upon the SeverityStyles interface from the dev.fritz2.styling.theme package.

Types

Link copied to clipboard
class SeverityContext

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
abstract val severity: NullableDynamicComponentProperty<Severity?>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard