budibase/packages/bootstrap-components/src/buildStyle.js

9 lines
184 B
JavaScript
Raw Normal View History

2019-10-14 09:32:20 +02:00
export const buildStyle = (styles) => {
let str = "";
for(let s in styles) {
if(styles[s]) {
str += `${s}: ${styles[s]}; `
}
}
return str;
}