【发布时间】:2018-12-03 08:55:58
【问题描述】:
使用 jQuery,我们可以轻松地对 viewRender 进行 DOM 操作,因此我们可以向现有 HTML 元素添加我们想要的额外 DOM/动作。
$('#calendar').fullcalendar({
customButtons: {
newButton: {
text: 'New Button', // if possible I want this to have an element ui datepicker component here
click: function() {
//I want to show date picker when this button is clicked
}
}
}
})
但是,我想在显示元素 UI 日期选择器的 VueFullCalendar 中应用它,我们只能这样做:
<full-calendar :events="events" />
谢谢。
【问题讨论】:
标签: vue.js fullcalendar element-ui