1
0
Fork 0
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:
Ulisses Herrera Freire de Almeida 2014-03-12 19:11:33 -03:00
parent ed37de07d3
commit fdbd791d39

View file

@ -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