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

Not accepting linear gradient background color #30

Open
prafullkumarBhendwade opened this issue Mar 4, 2024 · 2 comments
Open

Not accepting linear gradient background color #30

prafullkumarBhendwade opened this issue Mar 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@prafullkumarBhendwade
Copy link

I was trying to update linear gradient bg color to itemBackgroundColors prop , not accepting the bg color as linear gradient
See more below screen shots
Screenshot 2024-03-04 at 5 43 32 PM

Screenshot 2024-03-04 at 5 44 18 PM

@CrazyTim
Copy link
Owner

Hi @prafullkumarBhendwade,

Currently the color can only be a CSS color.

Because this library uses the Canvas API, it would need to be done via JavaScript and with a CanvasGradient.

The best way to acheive this might be to hook into the Wheel.drawItemBackgrounds method. I'm not sure if this is something I want to support, but for now I'll consider this a request for enhancement 😄.

@CrazyTim CrazyTim added the enhancement New feature or request label Apr 13, 2024
@CrazyTim CrazyTim changed the title Not accepting linear gradient bg color spin wheel how to solve this Not accepting linear gradient background color Apr 13, 2024
@prafullkumarBhendwade
Copy link
Author

Thanks for your replay

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

No branches or pull requests

2 participants