Class: RubyUIAdmin::UI::ToastCancel
- Defined in:
- app/components/ruby_ui_admin/ui/toast_cancel.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(label:, **attrs) ⇒ ToastCancel
constructor
A new instance of ToastCancel.
- #view_template ⇒ Object
Constructor Details
#initialize(label:, **attrs) ⇒ ToastCancel
Returns a new instance of ToastCancel.
7 8 9 10 |
# File 'app/components/ruby_ui_admin/ui/toast_cancel.rb', line 7 def initialize(label:, **attrs) @label = label super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
12 13 14 |
# File 'app/components/ruby_ui_admin/ui/toast_cancel.rb', line 12 def view_template (**attrs) { @label } end |