Class: Forms::Input::InputComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Forms::Input::InputComponent
- Defined in:
- app/components/alpha/forms/input/input_component.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ InputComponent
constructor
A new instance of InputComponent.
Constructor Details
#initialize(**options) ⇒ InputComponent
Returns a new instance of InputComponent.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/components/alpha/forms/input/input_component.rb', line 6 def initialize(**) @method = [:method] @object = [:object] @scope = [:scope] @type = .dig(:html, :type) @classes = .dig(:html, :class) @floating = .dig(:html, :floating) @placeholder = .dig(:html, :placeholder) @onchange = .dig(:html, :onchange) @html = [:html] classes_builder end |