Skip to content

Adding a new date range selection #582

@lksstml

Description

@lksstml

First off, thanks for the nice library, saved us a lot of work!

This question / request is somewhat related to #358 and #228:
Our goal is to let the user select a new (group dependend) date range within the timeline by clicking twice (first click = start date, second click = end date).

We've implemented a basic version using onCanvasClick and then add a new item (with different styling) after the second click.
This kind of works, but feels a bit workaroundish since the handlers etc. will be different for this new "item" as well. It would probably be better to not use the items array, but rather have some kind of a group dependant timeline marker, which can have its own click handlers etc.

Is this already possible with the current version? I couldn't find a way to have a date range marker for a single group. If not: Do you have a good idea / starting point how to implement this feature with the current version of the library? Or what would you suggest?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions