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
1 changed files with 1 additions and 1 deletions

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