Class: SolidusAdmin::ShippingCategories::New::Component

Inherits:
Index::Component
  • Object
show all
Defined in:
app/components/solidus_admin/shipping_categories/new/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(page:, shipping_category:) ⇒ Component

Returns a new instance of Component.



4
5
6
7
# File 'app/components/solidus_admin/shipping_categories/new/component.rb', line 4

def initialize(page:, shipping_category:)
  @page = page
  @shipping_category = shipping_category
end

Instance Method Details

#form_idObject



9
10
11
# File 'app/components/solidus_admin/shipping_categories/new/component.rb', line 9

def form_id
  dom_id(@shipping_category, "#{stimulus_id}_new_shipping_category_form")
end