Merge pull request #17776 from annich-MS/AddHandlerAsync

[Office-js] Add mailbox.addHandlerAsync and EventType.ItemChanged
This commit is contained in:
Ron Buckton
2017-07-07 01:24:38 -07:00
committed by GitHub

View File

@@ -288,6 +288,10 @@ declare namespace Office {
* Triggers when a document level selection happens
*/
DocumentSelectionChanged,
/**
* Triggers when the active item changes
*/
ItemChanged,
/**
* Triggers when a customXmlPart node was deleted
*/
@@ -1897,6 +1901,14 @@ declare namespace Office {
ewsUrl: string;
item: Item;
userProfile: UserProfile;
/**
* Adds an event handler for a supported event
* @param eventType The event that should invoke the handler
* @param handler The function to handle the event
* @param options Any optional parameters or state data passed to the method
* @param callback The optional method to call when the handler is added
*/
addHandlerAsync(eventType: Office.EventType, handler: (type: Office.EventType) => void, options?: any, callback?: (result: AsyncResult) => void): void;
/**
* Converts an item ID formatted for REST into EWS format.
* @param itemId An item ID formatted for the Outlook REST APIs