查看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疊加到具有最終調用此函數的腳本塊的窗口來完成。
如何從其他插件調用此函數? –
我已經添加了信息,讓我知道如果這更清楚。 –