Module: GOVUKDesignSystemFormBuilder::Elements::FileElement

Extended by:
ActiveSupport::Concern
Includes:
ActionDispatch::Routing::RouteSet::MountedHelpers, Traits::Error, Traits::HTMLAttributes, Traits::HTMLClasses, Traits::Hint, Traits::Label, Traits::Supplemental
Included in:
Document, Image
Defined in:
lib/govuk_design_system_formbuilder/concerns/file_element.rb

Instance Method Summary collapse

Instance Method Details

#htmlObject



20
21
22
23
24
# File 'lib/govuk_design_system_formbuilder/concerns/file_element.rb', line 20

def html
  Containers::FormGroup.new(*bound, **default_form_group_options(**@form_group)).html do
    safe_join([label_element, preview, hint_element, error_element, file, destroy_element, supplemental_content])
  end
end