L'utilisation de Twitter Bootstrap groupe de boutons radio sélectionnez avec knock-out liaisons

Cela fonctionne:

view.html

<div><input type="radio" name="radioPriority" data-bind="checked: priority" value="want" style="margin-top: -3px; margin-right: 3px;" />I want to</div>
<div><input type="radio" name="radioPriority" data-bind="checked: priority" value="need"  style="margin-top: -3px; margin-right: 3px;"/>I need to</div>

controller.js

function feedbackViewModel() {
    var self = this;
    self.priority = ko.observable("want");
    //lots of other stuff
}

Comme prévu, lorsque vous sélectionnez la deuxième radio la priorité observables changement de valeur du "besoin". Cependant, je voudrais utiliser Twitter Bootstrap groupe de boutons radio. Voici le code HTML que j'ai, mais il ne change pas observables comme prévu:

<span class="btn-group" data-toggle="buttons-radio">
    <button data-bind="checked: priority" type="button" class="btn" value="want">I want to</button>
    <button data-bind="checked: priority" type="button" class="btn" value="need">I need to</button>
</span>

mise à jour j'ai un jsfiddle allant ici: http://jsfiddle.net/a8wa8/6/ "priorité1" est le standard de la radio sélectionne et "priority2" est le bootstrap boutons.

OriginalL'auteur Scott Beeson | 2013-04-03