Class: SdrViewComponents::Forms::FileComponent
- Inherits:
-
FieldComponent
- Object
- ViewComponent::Base
- BaseComponent
- FieldComponent
- SdrViewComponents::Forms::FileComponent
- Defined in:
- app/components/sdr_view_components/forms/file_component.rb
Overview
Component for form file field
Instance Attribute Summary
Attributes inherited from FieldComponent
#args, #field_name, #form, #variant
Instance Method Summary collapse
Methods inherited from FieldComponent
#container_args, #container_classes, #error_args, #help_text_args, #help_text_below?, #initialize, #input_args, #label_args, #label_field_name
Methods inherited from BaseComponent
#args_for, #merge_actions, #merge_classes
Constructor Details
This class inherits a constructor from SdrViewComponents::Forms::FieldComponent
Instance Method Details
#input_component ⇒ Object
7 8 9 |
# File 'app/components/sdr_view_components/forms/file_component.rb', line 7 def input_component SdrViewComponents::Forms::BasicFileComponent.new(form:, field_name:, **input_args) end |