Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set solid color as Backgrounds ! #50

Open
ahmad6242 opened this issue Jul 9, 2020 · 2 comments
Open

How to set solid color as Backgrounds ! #50

ahmad6242 opened this issue Jul 9, 2020 · 2 comments

Comments

@ahmad6242
Copy link

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.

@pa-wesley
Copy link

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

@ahmad6242
Copy link
Author

ahmad6242 commented Jul 12, 2020

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
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants