Class: SolidusAdmin::UI::Toast::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::UI::Toast::Component
- Defined in:
- app/components/solidus_admin/ui/toast/component.rb
Constant Summary collapse
- SCHEMES =
{ default: %w[ bg-full-black text-white ], error: %w[ bg-red-500 text-white ], }
Instance Method Summary collapse
-
#initialize(text:, icon: nil, scheme: :default) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(text:, icon: nil, scheme: :default) ⇒ Component
Returns a new instance of Component.
13 14 15 16 17 |
# File 'app/components/solidus_admin/ui/toast/component.rb', line 13 def initialize(text:, icon: nil, scheme: :default) @text = text @icon = icon @scheme = scheme end |