我有一个简单的Ember.Select,我想使用valueBinding选项。
更改选择值应该会更改上面显示的值。事实并非如此。
http://jsfiddle.net/mattkime/rDpEG/
发布于 2012-08-01 01:55:41
我猜你的意思是selectionBinding,它绑定了对象,所以使用{{App.power.label}}
<script type="text/x-handlebars">
App Power : {{#if App.power}}{{App.power.label}}{{else}}Not yet set{{/if}}
<hr/>
{{view Ember.Select
contentBinding="App.booleanOptions"
selectionBinding="App.power"
optionLabelPath="content.label"
optionValuePath="content.value"
id="emberEnhanced"
}}
</script>发布于 2012-08-01 03:34:02
看起来我是在询问一个尚未发布的特性。当前版本是0.9.8.1,valueBinding在主干中
https://stackoverflow.com/questions/11745190
复制相似问题