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

SeverityContext
Link copied to clipboard
js
class SeverityContext

Functions

equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
severity
Link copied to clipboard
js
open fun severity(value: SeverityProperties.SeverityContext.() -> Severity)
Property to manage the severity value of the component.
severityClassOf
Link copied to clipboard
js
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.
toString
Link copied to clipboard
js
open fun toString(): String

Properties

severity
Link copied to clipboard
js
abstract val severity: NullableDynamicComponentProperty<Severity?>

Inheritors

CheckboxComponent
Link copied to clipboard
CheckboxGroupComponent
Link copied to clipboard
SeverityMixin
Link copied to clipboard
InputFieldComponent
Link copied to clipboard
RadioComponent
Link copied to clipboard
RadioGroupComponent
Link copied to clipboard
SwitchComponent
Link copied to clipboard
TextAreaComponent
Link copied to clipboard
SelectFieldComponent
Link copied to clipboard