timeRange classes not working
victordcqx opened this issue · comments
Nice work on the chart!
But I dont seem to be able to add classes to the timeRanges
It works for the tasks
timeRanges: [
{
id: 1,
from: Date.parse("2022-05-16T12:25"),
to: Date.parse("2022-05-16T12:50"),
classes: "green",
label: "test",
},
{
id: 2,
from: Date.parse("2022-05-16T14:25"),
to: Date.parse("2022-05-16T14:50"),
classes: ["currentTime"],
label: "test2",
},
]
version "4.0.3-beta"
Hi, you are 100% right, the classes
property was not passed for the timeRanges.
Must be fixed now :)
Thanks for the quick reaction!
It doesnt seem to upgrade through npm though... Is that a different version? Or does it take a while for npm to fetch the new update?
Also it seems you only updated the TimeRangeHeader, and not the TimeRange.
I would like to add classes to both.
Hello,
You're right the changes weren't publish to npm, forgot to do it :x
It must be good now !
I reopened your issue to add the class to the TimeRange too
Fixed it, I'll republish a new version with the class property passed to TimeRange during the day,
Thanks a lot!
The header now has the class :)
@V-Py
Hey, it seems you have not yet pushed the update to npm
Yeah my bad, at the time I wanted to wait another modification to push it and didn't have the time since.
Must be good by now