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 can apply a class or a background color to a row for a specific day ? #239

Open
divinepaul opened this issue Aug 26, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@divinepaul
Copy link

I have a special use-case where I need to have a background color for a row for just a day in the chart or some time period specified.
So when showing a week's worth of tasks, I can a mark a row of a specific day as some color.
Is this possible ? If it is, Could you tell me how or direct me to a file I could implement this in ?

Great library btw. Thank You. It's better than the paid ones. Loving it so far. :)

@ANovokmet
Copy link
Owner

Since you mention it is only for a row, you could create a task that starts and ends on that day, and make it { resizable: false, draggable: false } and possibly apply some custom CSS class to make it appear different than all other tasks. Would there be any issues doing it like this? Gantt did use to have something like this, called "time spans"...

@divinepaul
Copy link
Author

Forgot to mention, I did think of this and the problem with this was that When the layout is switched to 'expand' it no longer works as a background color.
'Time Spans' sound interesting. Does this still exist or has it been removed from the project ?

@ANovokmet
Copy link
Owner

I did think that might be the case. It not longer exists... I shall reintroduce it in some way then.

@ANovokmet ANovokmet added enhancement New feature or request good first issue Good for newcomers labels Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants
@ANovokmet @divinepaul and others