Class: RubyUIAdmin::UI::ToastCancel

Inherits:
Base
  • Object
show all
Defined in:
app/components/ruby_ui_admin/ui/toast_cancel.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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_templateObject



12
13
14
# File 'app/components/ruby_ui_admin/ui/toast_cancel.rb', line 12

def view_template
  button(**attrs) { @label }
end