diff --git a/README.md b/README.md index b8b2b4ee3..b113ff16e 100644 --- a/README.md +++ b/README.md @@ -189,24 +189,26 @@ You can also prepend and append buttons. Note: The buttons must contain the <%= f.text_field :search, append: link_to("Go", "#", class: "btn btn-default") %> ``` -### Additional Form Group Classes +### Additional Form Group Attributes -If you want to add an additional css class to the form group div, you can use -the `wrapper_class: 'additional-class'` option. +If you want to add an additional css class or any other attribute to the form group div, you can use +the `wrapper: { class: 'additional-class', data: { foo: 'bar' } }` option. ```erb -<%= f.text_field :name, wrapper_class: 'has-warning' %> +<%= f.text_field :name, wrapper: { class: 'has-warning', data: { foo: 'bar' } } %> ``` Which produces the following output: ```erb -