nette-bootstrap-form
nette-bootstrap-form copied to clipboard
Checkbox render
Hi,
i am thinking about implementation: https://github.com/flatlogic/awesome-bootstrap-checkbox. What you think?
Hi
This library looks good, but html that you need to generate is diferent than bootstrap html:
This is bootstrap way:
<div class="checkbox">
<label>
<input type="checkbox" value="">
</label>
</div>
And for this checkboxes you need to change it to
<div class="checkbox">
<input type="checkbox" id="checkbox1">
<label for="checkbox1">
Check me out
</label>
</div>
And this should be breaking change for this library.
Maybe to create new nette "Renderer" that will generate this kind of output.
Yea, i know, but this is a problem: https://api.nette.org/2.4.0/source-Forms.Controls.Checkbox.php.html#65