struct
Opal::UI::Toast
- Opal::UI::Toast
- Struct
- Value
- Object
Overview
Represents a single floating notification message.
Defined in:
opal/ui/components/toast.crConstructors
Instance Method Summary
- #created_at : Time::Instant
- #duration_ms : Int64
- #expired?(now : Time::Instant = Time.instant) : Bool
- #id : String
- #level : Symbol
- #level_badge : Tuple(String, Color)
- #message : String
- #title : String
Constructor Detail
def self.new(title : String, message : String = "", level : Symbol = :info, duration_ms : Int64 = 4000_i64, id : String = Random::Secure.hex(4), created_at : Time::Instant = Time.instant)
#