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

Add custom view into toolbar options #456

Closed
NgKX1641 opened this issue Mar 29, 2024 · 1 comment
Closed

Add custom view into toolbar options #456

NgKX1641 opened this issue Mar 29, 2024 · 1 comment

Comments

@NgKX1641
Copy link

I created a custom view but currently having trouble adding the view to the toolbar.

I also created a custom toolbar since I need it in english.

changeView(changeViewType: string) { switch (changeViewType){ case 'month': this.selectedViewType = GanttViewType.month; break; case 'year': this.selectedViewType = GanttViewType.year; break; } }

How do I add an option in the toolbar that allows me to switch to custom view?

@walkerkay
Copy link
Collaborator

you can set custom toolbar template

<ng-template #toolbar>
    <button>CustomView</button>
</ng-template>
image

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