gvas / knockout-jqueryui

Knockout bindings for the jQuery UI widgets.
http://gvas.github.com/knockout-jqueryui/
MIT License
103 stars 38 forks source link

buttonset - cant bind selected button #18

Closed ehartford closed 10 years ago

ehartford commented 10 years ago

with tabs, I can set an observable to the selected tab, using "active" or "selected"

but with buttonset, I do not see a way to set an observable to the selected button.

gvas commented 10 years ago

Neither has the jQuery UI buttonset widget any similar property. You can use knockout's standard checked binding to get the checked checkboxes or radios. http://jsfiddle.net/C4MCW/ (checkboxes) http://jsfiddle.net/PdVeq/ (radios)