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

Additional header #451

Open
NgKX1641 opened this issue Mar 22, 2024 · 2 comments
Open

Additional header #451

NgKX1641 opened this issue Mar 22, 2024 · 2 comments

Comments

@NgKX1641
Copy link

Hello, I see there is PrimaryDatePoints and SecondaryDatePoints for headers, is there a way for me to add a new header?
I am trying to display the year, week, day of week, and date at the same time.

@walkerkay
Copy link
Collaborator

walkerkay commented Mar 22, 2024

Currently not possible, i have another idea,you can try using a custom view.

You can try PrimaryDatePoints to display both year and week, and secondaryDatePoints to display both week and date. However, if that's the case, you need to set the cellWidth in ViewOptions to be larger.

https://gantt.ngnice.com/components/custom-view
https://github.com/worktile/ngx-gantt/tree/master/example/src/app/gantt-custom-view

@NgKX1641
Copy link
Author

Yes I have thought of this approach, but having year and week in the same field makes year display repeatedly along with every week, so year is just repeating over and over again.

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