Closed rayfranco closed 11 years ago
Should the DOM be plugin-specific ?
Is there a reason why you decide to design it this way (since it's bootstrap specific) ? What about relying on the checkbox instead of a wrapper ?
<input id="checkbox1" type="checkbox" value="value1" checked="checked">
And then
$('#checkbox1').toggleButtons();
In my opinion, the plugin should build itself what it needs to display correctly, our views should stay clean of plugin-specific DOM. What do you think ?
I will consider it for the next release. Thanks!
Should the DOM be plugin-specific ?
Is there a reason why you decide to design it this way (since it's bootstrap specific) ? What about relying on the checkbox instead of a wrapper ?
And then
In my opinion, the plugin should build itself what it needs to display correctly, our views should stay clean of plugin-specific DOM. What do you think ?