2015-04-15 64 views
1

我在全日历中显示出生日期:例如:1992年7月17日。我希望在2014年7月17日,2015年7月17日,2016年7月17日等所有年份都能参加这一活动。自动。重复发生的事件每年全日历

events: [{ 
        title: 'user1', 
        start: '2015-04-09', 
        description: 'birthday_event', 
        backgroundColor: Metronic.getBrandColor('blue') 
        },{ 
        title: 'user2', 
        start: '2015-04-08', 
        description: 'birthday_event', 
        backgroundColor: Metronic.getBrandColor('blue') 
        },{ 
        title: 'user3', 
        start: '2015-04-14', 
        description: 'birthday_event', 
        backgroundColor: Metronic.getBrandColor('blue') 
        } 
] 

此事件在完整的日历正确显示我想创建动态

+1

请显示一些代码.. – qtgye

+0

@Raja您能举一个例子说明您如何处理这个问题?我一直想要做每月和每年的重复。谢谢, –

回答

1

您可以使用viewRender事件和当年分配到日期的事件。

1

这是一个已经等待很长时间的附加功能。 Follow the link here to track the progress

我强烈建议它应该在服务器端完成,将需要对数据库进行一些操作。你可以建立你自己的逻辑或只是按照提到的链接来获得更清晰的视图。

这是一篇很好的文章,可以帮助您掌握如何解决问题。 Click here

我强烈建议您阅读这个Link Here表格结构和完整流程。