Class: SolidusAdmin::TaxCategories::Edit::Component

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

Instance Method Summary collapse

Constructor Details

#initialize(page:, tax_category:) ⇒ Component

Returns a new instance of Component.



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

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

Instance Method Details

#form_idObject



9
10
11
# File 'app/components/solidus_admin/tax_categories/edit/component.rb', line 9

def form_id
  dom_id(@tax_category, "#{stimulus_id}_edit_tax_category_form")
end