NextTimeSpan/PrevTimeSpan
Hi,
I'm using Angular framework and I'm trying to add NextTimeSpan/PrevTimeSpan buttons to my toolbar:
this.toolbarsettings = {
showToolbar: true,
toolbarItems: [
ej.Gantt.ToolbarItems.PrevTimeSpan,
ej.Gantt.ToolbarItems.NextTimeSpan,
],..
But, there is an error in the code:
[ts] Property 'ToolbarItems' does not exist on type 'typeof Gantt'.
Any idea why?
Thanks.
SIGN IN To post a reply.
3 Replies
PE
Punniyamoorthi Elangovan
Syncfusion Team
June 13, 2018 11:59 AM UTC
Hi Oscar,
Thank you for contacting Syncfusion support.
We are also facing this issue while setting enumerations for toolbar items for Gantt in Angular platform and we have already logged a bug report regarding this and we are currently working on this issue. The fix for the issue will be available in our upcoming 2018 Volume 2 Service pack 1 release, which is expected to be roll out in the end of July 2018. Meanwhile we suggest you to use the toolbar items in Gantt as string to overcome this issue. Please refer the below code snippet
|
[TS]
constructor() {
this.toolbarSettings = {
showToolbar: true,
toolbarItems: ["prevTimeSpan", "nextTimeSpan"]
};
}
[HTML]
<ej-gantt id="GanttControl"
[dataSource]="ganttData"
taskIdMapping="taskID"
[toolbarSettings] = "toolbarSettings"
//..
>
</ej-gantt> |
Also please find the sample link below for your reference,
Please let us know if you require further assistance on this.
Regards,
Punniyamoorthi
OB
oscar bartolome
June 13, 2018 01:45 PM UTC
Ok, now I got them in the toolbar.
Another question, is it possible to order the items in the toolbar mixing default and custom ones?
Thanks
PE
Punniyamoorthi Elangovan
Syncfusion Team
June 14, 2018 12:37 PM UTC
Hi Oscar,
We have analyzed your requirement. In Gantt, there is no support to render the custom toolbar items in-between the default toolbar items. The custom toolbar items will always render next to the default items in Gantt toolbar.
Please let us know if you require further assistance on this.
Regards,
Punniyamoorthi
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
OB oscar bartolome
- Jun 12, 2018 08:52 AM UTC
- Jun 14, 2018 12:37 PM UTC