如何在角度引导程序日历中使用自定义模板来显示事件详细信息? [英] How to use custom template for event details in angular bootstrap calendar?
问题描述
我正在使用Calendar Control(
I am using Calendar Control (https://github.com/mattlewis92/angular-bootstrap-calendar) for my project. I have used custom template URL for calendar month view and I want to change the format they provide for event details. For example, have a look at this image
这里我要更改模板并制作事件的时间消失了。我找不到任何例子,所以我发布在这里。任何想法如何实现这个?
Here I want to change the template and make the time of the event disappear. I couldn't find any example so I posted here. Any ideas how to achieve this?
谢谢。
推荐答案
我有同样的问题,这解决了我。我将此代码链接到我的angular.module,因此不是以分号结尾,而是添加代码。
I had the same issue and this resolved it for me. I chained this code to my angular.module, so instead of ending with a semi-colon, add the code.
.run(function(calendarEventTitle) {
calendarEventTitle.monthView = event => event.title;
});
这篇关于如何在角度引导程序日历中使用自定义模板来显示事件详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!