DrawerJs icon indicating copy to clipboard operation
DrawerJs copied to clipboard

How to set solid color as Backgrounds !

Open ahmad6242 opened this issue 4 years ago • 2 comments

Just wondering how can i set a background solid color. I want this feature on initialize and also after initializing the user can pick from a predefined list of colors.

ahmad6242 avatar Jul 09 '20 10:07 ahmad6242

backgroundCss in https://github.com/carstenschaefer/DrawerJs/wiki/Appearance Is not this what you want??

pa-wesley avatar Jul 10 '20 15:07 pa-wesley

I am trying to use it like this while initializing the Drawer JS, but its not working is that the right way? and if i want to change the background after init how would i do that ?

new DrawerJs.Drawer(null, {
        plugins: drawerPlugins,
        backgroundCss: 'url(' + globalURL + '/' + 'web/images/blue.png) repeat',
...MORE CODE HERE
})

ahmad6242 avatar Jul 12 '20 11:07 ahmad6242