周期性事件每年全日历 [英] Recurring events Yearly in full calendar

查看:189
本文介绍了周期性事件每年全日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这个事件在完整日历中正确显示,我想动态创建事件。


I am displaying the Date of Birth of the persons in the Full calendar ex:17-July-1992. I want to have this events entry in all years like 17-July-2014, 17-July-2015, 17-July-2016,etc. Automatically.

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')
                    }
]

this events are displaying correctly in the full calendar i want to create the events dynamically

解决方案

You can use viewRender event and assign current year to the date.

这篇关于周期性事件每年全日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆