2016-11-26 96 views

回答

0

查看openEventDialog函数,如果您想手动执行该函数,该函数还会在第434行中定义一些窗口参数。

/** 
* Opens the event dialog with the given item (task OR event) 
* 
* @param calendarItem  The item to open the dialog with 
* @param calendar   The calendar to open the dialog with. 
* @param mode    The operation the dialog should do ("new", "modify") 
* @param callback   The callback to call when the dialog has completed. 
* @param job    (optional) The job object for the modification. 
* @param initialDate  (optional) The initial date for new task datepickers 
*/ 
function openEventDialog(calendarItem, calendar, mode, callback, job, initialDate) 

您可以直接在主Thunderbird窗口的窗口对象上调用此函数。例如,可以通过将XUL叠加到具有最终调用此函数的脚本块的窗口来完成。

+0

如何从其他插件调用此函数? –

+0

我已经添加了信息,让我知道如果这更清楚。 –

相关问题