Module: GOVUKDesignSystemFormBuilder::Traits::Error
- Included in:
- Containers::CheckBoxesFieldset, Containers::RadioButtonsFieldset, Elements::CheckBoxes::Collection, Elements::CollectionSelect, Elements::Date, Elements::ErrorMessage, Elements::ErrorSummary, Elements::File, Elements::Inputs::Email, Elements::Inputs::Number, Elements::Inputs::Phone, Elements::Inputs::Text, Elements::Inputs::URL, Elements::Password, Elements::Radios::Collection, Elements::Select, Elements::TextArea
- Defined in:
- lib/govuk_design_system_formbuilder/traits/error.rb
Instance Method Summary collapse
Instance Method Details
#error_id ⇒ Object
4 5 6 7 8 |
# File 'lib/govuk_design_system_formbuilder/traits/error.rb', line 4 def error_id return unless has_errors? build_id('error') end |