nette-bootstrap-form icon indicating copy to clipboard operation
nette-bootstrap-form copied to clipboard

Checkbox render

Open landsman opened this issue 8 years ago • 2 comments

Hi,

i am thinking about implementation: https://github.com/flatlogic/awesome-bootstrap-checkbox. What you think?

landsman avatar May 31 '16 11:05 landsman

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.

tomaj avatar May 31 '16 12:05 tomaj

Yea, i know, but this is a problem: https://api.nette.org/2.4.0/source-Forms.Controls.Checkbox.php.html#65

landsman avatar May 31 '16 13:05 landsman