Attributes
Members list
Type members
Classlikes
Flash.Backend represents a flash-scope that is not cookie-based but instead uses an internal structure.
Flash.Backend represents a flash-scope that is not cookie-based but instead uses an internal structure.
Semantically it is identical to the cookie-based flash-scope (valid for a single request) but by using Flash.Backend we're not limited in size of the payload as in the cookie-based flash-scope. Still, the Flash.Backend uses a cookie but does not transport the payload with it but only an internal identifier.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A fash message can represent a notice, an alert or both - it's some kind of a specialized zio.prelude.These.
A fash message can represent a notice, an alert or both - it's some kind of a specialized zio.prelude.These.
Using a flash message allows one to categorize those into notice or alert and by that wrap both messages with a different ui design.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Gets any flash value of type A with the given key key.
Gets any flash value of type A with the given key key.
Attributes
Gets the first flash value of type A regardless of any key.
Gets the first flash value of type A regardless of any key.
Attributes
Gets a flash value of type A associated with the alert key.
Gets a flash value of type A associated with the alert key.
Attributes
Gets a flash value of type Boolean with the given key key.
Gets a flash value of type Boolean with the given key key.
Attributes
Gets a flash value of type Double with the given key key.
Gets a flash value of type Double with the given key key.
Attributes
Gets a flash value of type Float with the given key key.
Gets a flash value of type Float with the given key key.
Attributes
Gets a flash value of type Int with the given key key.
Gets a flash value of type Int with the given key key.
Attributes
Gets a flash value of type Long with the given key key.
Gets a flash value of type Long with the given key key.
Attributes
Creates a Flash.Message from two other values flashNotice and flashAlert.
Creates a Flash.Message from two other values flashNotice and flashAlert.
Uses flashNotice to create a Flash.Message representing a notice.
Uses flashAlert to create a Flash.Message representing an alert.
If flashNotice and flashAlert are both available in the flash scope the resulting Flash.Message will represent both.
Attributes
Creates a Flash.Message using the default keys for notice and alert.
Creates a Flash.Message using the default keys for notice and alert.
Additionally the values must be of type String so they can be transformed to Html.
Usage e.g.: Flash.getMessageHtml.foldHtml(showNotice, showAlert)(_ ++ _)
Attributes
Gets a flash value of type A associated with the notice key.
Gets a flash value of type A associated with the notice key.
Attributes
Gets a flash value of type String with the given key key.
Gets a flash value of type String with the given key key.
Attributes
Gets a flash value of type UUID with the given key key.
Gets a flash value of type UUID with the given key key.
Attributes
Sets a flash value of type A with the key for an alert.
Sets a flash value of type A with the key for an alert.
Attributes
Sets a flash value of type A with the key for a notice.
Sets a flash value of type A with the key for a notice.
Attributes
Sets a flash value of type A with the given key key.
Sets a flash value of type A with the given key key.