Created
May 19, 2021 05:12
-
-
Save markdon/ab3b2629dd617c25538106046a2bbdbd to your computer and use it in GitHub Desktop.
Gets the required attendees in Appointment Attendee mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Get required attendees (Appointment Attendee) | |
description: Gets the required attendees in Appointment Attendee mode. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#get-required-attendees").click(getRequiredAttendees); | |
function getRequiredAttendees() { | |
var apptRequiredAttendees = Office.context.mailbox.item.requiredAttendees.getAsync((result) => { | |
console.log(JSON.stringify(result.value, undefined, 1)); | |
}); | |
} | |
language: typescript | |
template: | |
content: |- | |
<section class="ms-font-m"> | |
<p class="ms-font-m">This sample shows how to get the <b>required attendees</b>.</p> | |
<p><b>Required mode</b>: Appointment Attendee</p> | |
</section> | |
<section class="samples ms-font-m"> | |
<h3>Try it out</h3> | |
<button id="get-required-attendees" class="ms-Button"> | |
<span class="ms-Button-label">Who are the required attendees?</span> | |
</button> | |
</section> | |
language: html | |
style: | |
content: |- | |
section.samples { | |
margin-top: 20px; | |
} | |
section.samples .ms-Button, section.setup .ms-Button { | |
display: block; | |
margin-bottom: 5px; | |
margin-left: 20px; | |
min-width: 80px; | |
} | |
language: css | |
libraries: | | |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js | |
@types/office-js | |
[email protected]/dist/css/fabric.min.css | |
[email protected]/dist/css/fabric.components.min.css | |
[email protected]/client/core.min.js | |
@types/core-js | |
[email protected] | |
@types/[email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment