After the recent announcement of the SPFX preview announcement, had a chance to look into it in details. This time, I took it as a challenge to use only Mac and VS code to develop my SPFX client web part and it was quite a fun and first time I have developed a SP component using my Mac without Windows and Visual Studio.
There are so many blogs / helps available and here are the few I used for mine.
- SP Dev Docs - Contains the setup and sample one.
- Waldek Mastykarz - MVP - Detailed analysis of the SPFx.
- Vardhaman Deshpande - Sample SPFx web parts and Implementing validation on property pane fields.
Right, after my first SPFx client web parts, I was looking into in details about how it works etc. While looking into it, found an api where we can get the list of ClientWebparts from deployed. Internally it is used to pull the deployed ClientWebParts to get the manifest.
If you need to get all the manifest details of the ClientWebparts deployed,
_api/web/GetClientSideWebParts - returns the list of ClientWebparts (uploaded to the appcatalog) with the manifest details.
The manifest contains the client web part details like,
- Webpart Id
- Webpart properties
- BaseUrl
- Script Resources etc
Screenshot:
by Balamurugan Kailasam via Everyone's Blog Posts - SharePoint Community
No comments:
Post a Comment