Class: SolidusAdmin::UI::Modal::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/solidus_admin/ui/modal/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(title:, close_path: nil, open: true, **attributes) ⇒ Component

Returns a new instance of Component.



6
7
8
9
10
11
# File 'app/components/solidus_admin/ui/modal/component.rb', line 6

def initialize(title:, close_path: nil, open: true, **attributes)
  @title = title
  @close_path = close_path
  @attributes = attributes
  @attributes[:open] = open
end