From fdbd791d390583899c143b617d8ad99016d18284 Mon Sep 17 00:00:00 2001 From: Ulisses Herrera Freire de Almeida Date: Wed, 12 Mar 2014 19:11:33 -0300 Subject: [PATCH] Add an entry to README showing the possibility to add additional html attributes to custom wrappers. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 467c6ad7..60418778 100644 --- a/README.md +++ b/README.md @@ -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