2016-11-26 16 views
0

주어진 날짜와 시간으로 thunderbrid-lightning-create 이벤트 대화 상자를 열고 싶습니다. 현재 내가 가진 : 예상대로 대화 상자를 엽니 다번개 - "이벤트 만들기"- 주어진 날짜와 시간으로 다이얼로그를 실행하는 방법

window.open("chrome://calendar/content/calendar-event-dialog.xul", 
         "xulschoolhello-some-window", 
         "chrome,centerscreen") 

합니다. 지금 날짜와 시간을 어떻게 설정할 수 있습니까?

답변

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

이 기능을 다른 애드온 (addon)에서 어떻게 호출 할 수 있습니까? –

+0

정보를 추가했습니다.이 정보가 명확하면 알려주세요. –