首页 > 解决方案 > Custom tooltip template in angular syncfusion scheduler

问题描述

Got troubles with angular syncfusion scheduler. Does anyone has an idea how to get working custom tooltipe event as per documentation its noted to add template:

<ng-template #eventSettingsTooltipTemplate  let-data>
  <div>My template</div>
</ng-template>

and enable tooltip within EventSettingModel enableTooltip: true but with this done nothing from the template above appears, am I missing something in this way?

Another way is by providing tooltipTemplate: '<div>stringtmplate<div/>' but not nice to have string within a component file instead template, how can I implement it in a proper way?

标签: angularsyncfusion

解决方案


我们怀疑您在 Angular 9 中使用了旧版本的 Syncfusion 计划。我们建议您将包版本升级到最新版本以解决问题。

最新包版本“@syncfusion/ej2-schedule”:“18.1.54”

如需更多参考,请参阅以下示例。

示例:https ://stackblitz.com/edit/angular-urup27?file=app.component.html

请检查上述样本并与我们联系以获得进一步的帮助。


推荐阅读