Class: SolidusAdmin::UI::Forms::SwitchField::Component

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

Instance Method Summary collapse

Constructor Details

#initialize(label:, error:, hint: nil, tip: nil, **attributes) ⇒ Component

Returns a new instance of Component.



4
5
6
7
8
9
10
# File 'app/components/solidus_admin/ui/forms/switch_field/component.rb', line 4

def initialize(label:, error:, hint: nil, tip: nil, **attributes)
  @label = label
  @error = error
  @hint = hint
  @tip = tip
  @attributes = attributes
end