angular - 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?
解决方案
我们怀疑您在 Angular 9 中使用了旧版本的 Syncfusion 计划。我们建议您将包版本升级到最新版本以解决问题。
最新包版本:“@syncfusion/ej2-schedule”:“18.1.54”
如需更多参考,请参阅以下示例。
示例:https ://stackblitz.com/edit/angular-urup27?file=app.component.html
请检查上述样本并与我们联系以获得进一步的帮助。
推荐阅读
- c# - 在 iframe 中使用 RedirectToAction 后,ASP.NET MVC 会话被重置
- sql - 如何将json解析为行而不是列?
- jquery - 如何在不使用 Shopify 中的任何应用的情况下添加使用 google 或 facebook 登录?
- php - 如何在moodle中显示统计数据?
- swift - 如何在特定视图控制器中使用默认动画更改 UINavigationController 导航栏背景颜色
- javascript - Firestore:动态更新文档(网络)
- docker - 管理用于 docker 构建的本地/私有 Golang 包和模块
- javascript - 如何使用localStorage恢复页面重新加载时vimeo的暂停时间?
- ruby-on-rails - 如何正确修补 RoR 上的 Numeric 类?
- amazon-web-services - 如何通过 AWS Quicksight 连接到 Redshift Spectrum 上的外部架构/表?