mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Add an entry to README showing the possibility to add additional html attributes to custom wrappers.
This commit is contained in:
parent
ed37de07d3
commit
fdbd791d39
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ If you want to customize the custom _Form components_ on demand you can give it
|
|||
config.wrappers do |b|
|
||||
b.use :placeholder
|
||||
b.use :label_input
|
||||
b.wrapper :my_wrapper, tag: :div, class: 'separator' do |component|
|
||||
b.wrapper :my_wrapper, tag: :div, class: 'separator', html: { id: 'my_wrapper_id' } do |component|
|
||||
component.use :hint, wrap_with: { tag: :span, class: :hint }
|
||||
component.use :error, wrap_with: { tag: :span, class: :error }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue