我使用的是Vue JS:的完整日历
我似乎找不到使用完整Calendar Vue JS组件添加事件的方法。我看到这样做的例子的唯一方法是获取日历的API并通过它创建事件。这看上去有点不太好。
文档演示:
handleDateSelect(selectInfo) {
let title = prompt('Please enter a new title for your event')
let calendarApi = selectInfo.view.calendar
calendarApi.unselect() // clear dat
我试图添加一个新的事件到ui日历使用ui引导模式框。然而,它没有显示在日历上。下面,我已经创建了“当天单击事件”的函数,该函数包含模式框的代码:
$scope.dayClickEvent = function(date,jsEvent,view){
//open model view for adding a event title
var creatEventModalInstance = $modal.open({
templateUrl: '/js/schedule/event_modal.html',
如果输入文本已经使用jQuery API ()中的.val()通过Javascript更改了,则需要触发一个事件:Note: Changing the value of an input element using JavaScript, using .val() for example, won't fire the event.
我已经尝试过这个,但似乎不起作用...
这是我的代码:
<input type="text" id="datePrint" maxlength="10" size="6" disable