bootstrap_dropdowns_enhancement
bootstrap_dropdowns_enhancement copied to clipboard
Code in example
I think that it will be more clear if in the 'Custom label text' example, the code matches exactly what the example shows. So instead of
<div class="btn-group">
<button data-toggle="dropdown" class="btn dropdown-toggle">Checked option <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><input type="radio" id="ID" name="NAME" value="VALUE"><label for="ID"><span class="data-label">Label</span> Other text</label></li>
<!-- Other items -->
</ul>
</div>
maybe
<div class="btn-group">
<button data-label-placement="" class="btn btn-default"><i class="glyphicon glyphicon-pencil data-label"></i></button>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span> </button>
<ul class="dropdown-menu">
<li>
<input type="radio" checked="" value="1" name="ex7" id="ex7_1">
<label for="ex7_1"><i class="glyphicon glyphicon-pencil data-label"></i> Edit</label>
</li>
<li>
<input type="radio" value="2" name="ex7" id="ex7_2">
<label for="ex7_2"><i class="glyphicon glyphicon-trash data-label"></i> Remove</label>
</li>
<li>
<input type="radio" value="3" name="ex7" id="ex7_3">
<label for="ex7_3"><i class="glyphicon glyphicon-print data-label"></i> Print</label>
</li>
</ul>
</div>
This way lazy people, like myself, can just copy/paste the example.
If it's okay with you I will be glad to fork and change it.