worktile / ngx-gantt

A modern and powerful gantt chart component for Angular

Home Page:http://gantt.ngnice.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add custom view into toolbar options

NgKX1641 opened this issue · comments

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?

you can set custom toolbar template

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