by using the default simple_form 2 wrapper, it generates a markup that looks like this :
<div class="...">
<label>...</label>
<input ... />
</div>
I would like to get a markup in which the input tag is itself inside a wrapper like this :
<div class="...">
<label>...</label>
<div class="...">
<input ... />
</div>
</div>
Do I have to create a custom component for this behaviour ?
Thanks.
Nicolas.
Check this out:
The wrapper API isn’t well documented yet, but I’ve spent some time trying to figure it out. Here is a simple example, which can be setup inside the simple_form initializer.
Then, when you create a form just specify the wrapper you want to use:
Hope this helps.