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

10 lines
161 B
JavaScript
Raw Normal View History

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