object Flash
- Alphabetic
- By Inheritance
- Flash
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Backend extends AnyRef
Flash.Backendrepresents a flash-scope that is not cookie-based but instead uses an internal structure.Flash.Backendrepresents 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.Backendwe're not limited in size of the payload as in the cookie-based flash-scope. Still, theFlash.Backenduses a cookie but does not transport the payload with it but only an internal identifier. -
sealed
trait
Message[+A, +B] extends AnyRef
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.
- sealed trait Setter[A] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fail(message: String): Flash[Nothing]
-
def
get[A](implicit arg0: Schema[A]): Flash[A]
Gets the first flash value of type
Aregardless of any key. -
def
get[A](key: String)(implicit arg0: Schema[A]): Flash[A]
Gets any flash value of type
Awith the given keykey. -
def
getAlert[A](implicit arg0: Schema[A]): Flash[A]
Gets a flash value of type
Aassociated with the alert key. -
def
getBoolean(key: String): Flash[Boolean]
Gets a flash value of type
Booleanwith the given keykey. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getDouble(key: String): Flash[Double]
Gets a flash value of type
Doublewith the given keykey. -
def
getFloat(key: String): Flash[Float]
Gets a flash value of type
Floatwith the given keykey. -
def
getInt(key: String): Flash[Int]
Gets a flash value of type
Intwith the given keykey. -
def
getLong(key: String): Flash[Long]
Gets a flash value of type
Longwith the given keykey. -
def
getMessage[A, B](flashNotice: Flash[A], flashAlert: Flash[B]): Flash[Message[A, B]]
Creates a
Flash.Messagefrom two other valuesflashNoticeandflashAlert.Creates a
Flash.Messagefrom two other valuesflashNoticeandflashAlert.Uses
flashNoticeto create aFlash.Messagerepresenting a notice.Uses
flashAlertto create aFlash.Messagerepresenting an alert.If
flashNoticeandflashAlertare both available in the flash scope the resultingFlash.Messagewill represent both. -
def
getMessageHtml: Flash[Message[Html, Html]]
Creates a
Flash.Messageusing the default keys for notice and alert.Creates a
Flash.Messageusing the default keys for notice and alert.Additionally the values must be of type
Stringso they can be transformed toHtml.Usage e.g.:
Flash.getMessageHtml.foldHtml(showNotice, showAlert)(_ ++ _) -
def
getNotice[A](implicit arg0: Schema[A]): Flash[A]
Gets a flash value of type
Aassociated with the notice key. -
def
getString(key: String): Flash[String]
Gets a flash value of type
Stringwith the given keykey. -
def
getUUID(key: String): Flash[UUID]
Gets a flash value of type
UUIDwith the given keykey. -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
setAlert[A](a: A)(implicit arg0: Schema[A]): Setter[A]
Sets a flash value of type
Awith the key for an alert. - def setEmpty: Setter[Unit]
-
def
setNotice[A](a: A)(implicit arg0: Schema[A]): Setter[A]
Sets a flash value of type
Awith the key for a notice. -
def
setValue[A](key: String, a: A)(implicit arg0: Schema[A]): Setter[A]
Sets a flash value of type
Awith the given keykey. - def succeed[A](a: A): Flash[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Backend