1107798da6
Generated with a codemode: https://github.com/ember-cli/ember-modules-codemod
16 lines
352 B
JavaScript
16 lines
352 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
/**
|
|
* CSS Class
|
|
*
|
|
* Usage: {{css-class updateType}}
|
|
*
|
|
* Outputs a css friendly class string from any human string.
|
|
* Differs from dasherize by handling slashes.
|
|
*/
|
|
export function cssClass([updateType]) {
|
|
return updateType.replace(/\//g, '-').dasherize();
|
|
}
|
|
|
|
export default helper(cssClass);
|