Class: SolidusAdmin::UI::Forms::SwitchField::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::UI::Forms::SwitchField::Component
- Defined in:
- app/components/solidus_admin/ui/forms/switch_field/component.rb
Instance Method Summary collapse
-
#initialize(label:, error:, hint: nil, tip: nil, **attributes) ⇒ Component
constructor
A new instance of Component.
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 |