Skip to content

Commit

Permalink
feat: Adiciona helper no form builder para o componente text area (#101)
Browse files Browse the repository at this point in the history
* feat: Adiciona estado ao componente text area

* feat: Adiciona helper para text area

* refactor: Remove código de teste
  • Loading branch information
alannascimento1 authored Oct 28, 2024
1 parent a399047 commit 735176e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/helpers/ink_components/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def select(attribute, choices = nil, select_options = {}, tag_options = {})
end
end

def text_area(attribute, **)
state = field_state(attribute)
text_area_component(state:, **html_options(attribute), **)
end

def error_message(attribute, **)
state = field_state(attribute)
helper_text_component(state:, **) { error_messages(attribute) }
Expand Down

0 comments on commit 735176e

Please sign in to comment.