javascript - 将 CSS 类添加到 Ember.Select

标签 javascript ember.js

我需要将 css 类添加到 Ember.Select View :

{{view Ember.Select contentBinding="kpiTypes" valueBinding="model.amount" optionValuePath="content.value" optionLabelPath="content.name"}}

只添加类是行不通的

最佳答案

使用 classNames 属性:

{{view Ember.Select classNames="foo bar"}}

关于javascript - 将 CSS 类添加到 Ember.Select,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18770657/

相关文章:

php - 使用 JS 或 PHP 进行 cometd 编程

ember.js - 如何使用 ember 异步加载与页面模型不同的其他资源

javascript - 使用 <select> 值作为 javascript var

javascript - 如何使用 javascript 删除特定的 div 标签并重置其内容

ember.js - 如何链接到应用程序的根路径

ember.js - 用于测试的 ember-cli 和 ember-simple-auth 设置

ember.js - 保存 Ember 数据模型后的转换

javascript - Sails.js JSON 到 Ember

javascript - 为什么我收到 Chrome Native Messaging "Specified native messaging host not found."?

javascript - 如何设置在加载所有动态添加的 iframe 时触发的 window.onload 事件?