Web Part Context — Introduction to SharePoint Framework
In this lesson, we will be creating an entirely new dashboard web part from scratch. We’ll begin to understand how we can consume SharePoint’s REST web services by first exploring a property on the web part called its context. This important property comes with every web part you build, and contains information about the context of the web part to which it belongs. This allows developers to get information about the site, page, and user viewing the web part at any time. We’ll also utilize the very convenient HTTP client utilities that come as part of the context property itself. BaseClientSideWebPart Class: https://learn.microsoft.com/en-us/javascript/api/sp-webpart-base/baseclientsidewebpart?view=sp-typescript-latest Web Part Context: https://learn.microsoft.com/en-us/javascript/api/sp-webpart-base/webpartcontext?view=sp-typescript-latest Get to Know the SharePoint REST Service: https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom SharePoint Search REST API: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview Getting Started with OData:https://www.odata.org/getting-started/basic-tutorial/ ES6 for Everyone by Wes Bos: https://es6.io/ ES6 Promises by Dave Atchley: https://www.datchley.name/es6-promises/ Lesson Source Code: https://github.com/himanshu28chavan/Dash
Download
0 formatsNo download links available.