github.com/manicqin/nomad@v0.9.5/ui/app/helpers/css-class.js (about) 1 import { helper } from '@ember/component/helper'; 2 3 /** 4 * CSS Class 5 * 6 * Usage: {{css-class updateType}} 7 * 8 * Outputs a css friendly class string from any human string. 9 * Differs from dasherize by handling slashes. 10 */ 11 export function cssClass([updateType]) { 12 return updateType.replace(/\//g, '-').dasherize(); 13 } 14 15 export default helper(cssClass);