在手柄栏中的样式
我是新来的烬,可以使用一些帮助,试图风格我创build的进度栏。 这就是创build进度条的过程:
{{ember-progress-bar style=myStyle shape="Circle" useDefaultStep=false progress=model.points options=(hash strokeWidth=5 duration=600)}}
我想在控制器中使用这个代码来devise它的样式:
export default Ember.Controller.extend({ myStyle: "color: #3a3a3a" });
但是这不起作用。 任何build议,我需要做什么不同?
你需要使用attributeBinding作为style属性。 在ember-progress-bar
组件中包含以下语句,
attributeBindings:['style']