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

Don't hardcode the colors #86

Open
zsoltjanes opened this issue Oct 7, 2022 · 1 comment
Open

Don't hardcode the colors #86

zsoltjanes opened this issue Oct 7, 2022 · 1 comment

Comments

@zsoltjanes
Copy link

It would be nice if I can pass the class or the color of the current item.

dataSource: [
        {
          id: 0,
          name: 'Google I/O',
          location: 'San Francisco, CA',
          startDate: new Date(currentYear, 4, 28),
          endDate: new Date(currentYear, 4, 29),
          color: '#bababa' <-- something like this
        }
]
@selfcatering
Copy link

selfcatering commented Oct 25, 2022

That's how it actually works.
image

Any chance you're overriding it with CSS? Just let JS set background color using the color property from your example object.

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