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

Dynamically change View Options #309

Closed
ddavis-warrier opened this issue Feb 24, 2023 · 1 comment
Closed

Dynamically change View Options #309

ddavis-warrier opened this issue Feb 24, 2023 · 1 comment

Comments

@ddavis-warrier
Copy link

I'm not sure if this is relevant to #237 but I am looking to add the ability to dynamically change the date range that the gantt chart displays. I'd like it so that the user can select a start and end date. Is this possible? I've tried refreshing the gantt items after changing the viewOptions start and end but that does not seem to do the trick. Any ideas?

@ddavis-warrier
Copy link
Author

Nevermind I ended up figuring it out. Just needed to make sure to change references of the view options:

this.viewOptions = { start: new GanttDate() end: new GanttDate() }

instead of:
this.viewOptions.start = new GanttDate(); this.viewOptions.end = new GanttDate();

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

1 participant