2つのView間でattributeBindingsを使用して継承を試行しています。私は( 'attributeBindings')this.getを試してみるemberjsでは、親ビューからattributeBindingsパラメータを拡張する方法は?
(function(exports) {
Ember.MobileBaseView = Ember.View.extend({
attributeBindings:['data-role', 'data-theme'],
'data-theme': 'a'
});
})({});
(function(exports) {
Ember.ToolbarBaseView = Ember.MobileBaseView.extend({
attributeBindings:this.get('attributeBindings').concat(['data-position']),
'data-position': function() {
。連結([ 'データ位置'])とEmber.MobileBaseView.get( 'attributeBindings')。([ 'DATA-連結位置 '])とEmber.MobileBaseView.attributeBindings.concat([' データ位置 '])
はおそらく、私はちょうどattributeBindingsを実行する必要があります。[' データ-役割」、 'データ・テーマ'、 'data-position']、ですが、私はむしろより良い解決策を見つけるでしょう。
おかげで多くのことを、私は私のためのコードでのエラーのため、このように働いていないthinkingsました。私は今日新しいことを学ぶ:)。 – tolbard
うれしい私は助けることができました! – pangratz