Office.RecipientsChangedEventArgs interface
Provides change status of recipients fields when the Office.EventType.RecipientsChanged
event is raised.
Remarks
Examples
// Handles the OnMessageRecipientsChanged event.
function onMessageRecipientsChangedHandler(event) {
console.log(`Event: ${event.type}`);
const recipientFields = event.changedRecipientFields;
console.log(getChangedRecipientFields(recipientFields));
}
// Gets the recipient fields that have changed.
function getChangedRecipientFields(recipientFields) {
return Object.keys(recipientFields).filter((key) => recipientFields[key] === true);
}
Properties
changed |
Gets an object that indicates change state of recipients fields. |
type | Gets the type of the event. For details, refer to Office.EventType. |
Property Details
changedRecipientFields
Gets an object that indicates change state of recipients fields.
changedRecipientFields: RecipientsChangedFields;
Property Value
Remarks
type
Gets the type of the event. For details, refer to Office.EventType.
type: "olkRecipientsChanged";
Property Value
"olkRecipientsChanged"
Remarks
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Office Add-ins