You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
306 B
14 lines
306 B
1 year ago
|
module.exports.getTypeof = function (obj) {
|
||
|
return typeof obj;
|
||
|
};
|
||
|
|
||
|
module.exports.getActionClass = function (prefix, buttonLayout) {
|
||
|
var cls = [prefix + '__button', prefix + '__button--action'];
|
||
|
|
||
|
if (buttonLayout) {
|
||
|
cls.push(prefix + '__button--' + buttonLayout);
|
||
|
}
|
||
|
|
||
|
return cls.join(' ');
|
||
|
};
|