S.No |
Queries |
Syncfusion Comments | |
1
|
"str.match is not a function".
I dont want to remove the package ej2-ng-diagrams.
|
We prepared a sample by installing packages of different version. We are not able to reproduce the issue. We suspect that this issue may arise when duplicate packages are installed. Please follow the below steps.
If the issue still persists, you can install @syncfusion/ej2-angular-diagrams with same version used for other components in package.json instead of ej2-ng-diagrams after following the above steps. Because this package name was updated as @syncfusion/ej2-angular-diagrams.
If you don’t want to use @syncfusion/ej2-angular-diagrams instead of ej2-ng-diagrams, can you please share us the details and requirement with old diagram package?
| |
2
|
Is there any way to show additional data?
Also I want to remove duration data showing from the tooltip.
|
Yes, it is possible to show additional data, and also we can remove the default data displayed in the tooltip. To render customized tooltip, it is not necessary to define the taskbar property in tooltipSettings.
Please find the below code example.
In the provided sample, we removed the default taskName and duration field and included an additional data Baseline start date and Baseline end date.
|
<ejs-gantt id="ganttDefault" height="430px" >
<ng-template #tooltipSettingsTaskbar let-data><table class="e-gantt-tooltiptable">
//...
</table>
</ng-template>
</ejs-gantt> |
[app.component.html]
<ejs-gantt id="ganttDefault"
//...
(beforeTooltipRender) = "beforeTooltipRender($event)" >
</ejs-gantt>
[app.component.ts]
export class AppComponent {
//...
public beforeTooltipRender(args: any): void {
if(args.data && args.data.TaskId == 3) {
args.content.innerHTML = 'Testing'
}
}
} |