Sentiment

@Serializable
enum Sentiment : Enum<Sentiment>

Signifier for the purpose of a UI element.

This is used in place of styling, by indicating the purpose or state of a UI element.

Entries

Link copied to clipboard
@SerialName(value = "nominal")
Nominal

Default, normal, state of an element.

Link copied to clipboard
@SerialName(value = "primary")
Primary

Indicate to the user that this is the preferred element.

Link copied to clipboard
@SerialName(value = "positive")
Positive

Indicate a successful or positive result for a UI element

Link copied to clipboard
@SerialName(value = "negative")
Negative

Indicate a failed or negative result for a UI element

Link copied to clipboard
@SerialName(value = "caution")
Caution

Indicate danger associated with a UI element

Link copied to clipboard
@SerialName(value = "idle")
Idle

Indicate inactivity or a lack of data for a UI element

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Sentiment

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.