struct

Opal::UI::Toast

Inherits Struct < Value < Object

Represents a single floating notification message.

Constructors

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)
Source

Instance methods

created_at
Source
duration_ms
Source
expired?(now : Time::Instant = Time.instant) : Bool
Source
level
Source
level_badge
Source
message
Source
title
Source