This commit is contained in:
Harsha Vardhini 2020-06-13 08:27:00 +05:30
commit 4d9612ea2d
1 changed files with 36 additions and 19 deletions

View File

@ -1,26 +1,43 @@
## getallwebpart
### React Webpart Details
This is where you include your WebPart documentation.
## Summary
### Building the code
The web part illustrates how to get all the web part present in the current page, bind them in a multi-select dropdown.
```bash
git clone the repo
npm i
npm i -g gulp
gulp
```
On selecting the web part title from the dropdown, it will be hidden. You can use this sample to as per the requirement.
This package produces the following:
![React web part Details](./assets/webpartDetails.png)
Note: This sample will not work in workbench as it loads the web part from current page and will not work for workbench.aspx. To test locally, build the development package (using `gulp bundle` and `gulp package-solution`) and test it using `gulp serve`.
* lib/* - intermediate-stage commonjs build artifacts
* dist/* - the bundled script, along with other resources
* deploy/* - all resources which should be uploaded to a CDN.
## Used SharePoint Framework Version
### Build options
![1.10.0](https://img.shields.io/badge/version-1.10.0-green.svg)
gulp clean - TODO
gulp test - TODO
gulp serve - TODO
gulp bundle - TODO
gulp package-solution - TODO
SPFx 1.10.0
## Applies to
* [SharePoint Framework](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview)
## Solution
Solution|Author(s)
--------|---------
React-webpartdetails| Harsha Vardhini ([@harshagracy](https://twitter.com/harshagracy) / [Harsha's Blog](https://harshagracy.com/))
## Version history
Version|Date|Comments
-------|----|--------
1.0|June 12, 2020|Initial release
## Minimal Path to Awesome
- Clone this repository
- in the command line run:
- `npm install`
- `gulp serve`
<img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-webpartdetails" />