Module: GOVUKDesignSystemFormBuilder::Traits::HTMLAttributes
- Included in:
- Containers::Fieldset, Elements::CheckBoxes::FieldsetCheckBox, Elements::CollectionSelect, Elements::ErrorSummary, Elements::File, Elements::Inputs::Email, Elements::Inputs::Number, Elements::Inputs::Password, Elements::Inputs::Phone, Elements::Inputs::Text, Elements::Inputs::URL, Elements::Radios::FieldsetRadioButton, Elements::Select, Elements::Submit, Elements::TextArea
- Defined in:
- lib/govuk_design_system_formbuilder/traits/html_attributes.rb
Defined Under Namespace
Classes: Attributes
Instance Method Summary collapse
Instance Method Details
#attributes(html_attributes = {}) ⇒ Object
64 65 66 |
# File 'lib/govuk_design_system_formbuilder/traits/html_attributes.rb', line 64 def attributes(html_attributes = {}) Attributes.new(, html_attributes).to_h end |