-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding mgt-get #187
Adding mgt-get #187
Conversation
request = request.middlewareOptions(prepScopes(...this.scopes)); | ||
} | ||
|
||
response = await request.get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the UI update at this point when this is set or wait until the rest of the pages are fetched? (Ah, saw after this is the local response, so no, eh? Do we want to change this?)
It'd be nice if the control could start loading at this point and show the first set of items while the rest are fetched?
Thinking from the XAML side of just having an Observable Collection, so items will be added in batches as the data is fetched and the UI updates as they come in?
FYI, have a prototype of this working for the .NET controls too see here. |
Closes #160
PR Type
Description of the changes
mgt-get
allows you to make any GET query from Microsoft Graph directly in your HTML. The component does not provide a default UI and requires the developer to write a template.Example
Properties and Attributes
The only required attribute is
resource
. However, you can use several properties to change the behavior.resource
resource
/me
)scopes
scopes
version
version
v1.0
.maxPages
max-pages
response
error
Events
dataChange
response
anderror
objectsTemplates
The
mgt-get
component supports several templates that you can use to define the look and feel. To specify a template, include a<template>
element inside a component and set thedata-type
value to one of the following.default
error
loading
Other information
This PR also adds support for using
{{this}}
in the templates to print the entire data context