sp-dev-fx-webparts/samples/react-custompropertypanecon...
Abraham Galindo 55ac20686a Update latest packages (#849)
* Upgrade to SPFx 1.8.1

* Unmount property pane when pane is closed

* Remove unused config

* Move styles to sass

* Disabled dropdown
2019-05-08 22:37:08 +03:00
..
.vscode Added custom property pane control sample (#42) 2016-10-21 17:05:43 +03:00
assets Cascading dropdown without custom controls sample (#68) 2016-11-22 15:46:01 +02:00
config Update latest packages (#849) 2019-05-08 22:37:08 +03:00
src Update latest packages (#849) 2019-05-08 22:37:08 +03:00
.editorconfig Added custom property pane control sample (#42) 2016-10-21 17:05:43 +03:00
.gitattributes Added custom property pane control sample (#42) 2016-10-21 17:05:43 +03:00
.gitignore Added custom property pane control sample (#42) 2016-10-21 17:05:43 +03:00
.npmignore Added custom property pane control sample (#42) 2016-10-21 17:05:43 +03:00
README.md React Custom Property Pane Control updated to GA build. refactor custom control and standard dropdown properties with dynamic data. Refactor data services (#212) 2017-06-12 08:56:36 +02:00
gulpfile.js Update latest packages (#849) 2019-05-08 22:37:08 +03:00
package.json Update latest packages (#849) 2019-05-08 22:37:08 +03:00
pnpm-lock.yaml Update latest packages (#849) 2019-05-08 22:37:08 +03:00
tsconfig.json Update latest packages (#849) 2019-05-08 22:37:08 +03:00
tslint.json Update latest packages (#849) 2019-05-08 22:37:08 +03:00

README.md

Custom property pane controls built in React

Summary

Sample custom property pane controls built in React for use with SharePoint Framework client-side web parts.

Asynchronous drop-down

Drop-down that loads its options asynchronously.

Trending in this site Web Part in the SharePoint Workbench

This control supports promises and chaining for cascading drop-downs where value from one field determines values in other drop-down fields.

Drop-down with external data without using a custom control

Cascading drop-downs in the property pane both using external data.

Web part with cascading drop-downs in the property pane

Used SharePoint Framework Version

drop

Applies to

Solution

Solution Author(s)
react-custompropertypanecontrols Waldek Mastykarz (MVP, Rencore, @waldekm)

Version history

Version Date Comments
2.0.1 May 1, 2017 Updated to SPFx GA
2.0.0 November 22, 2016 Added new sample web part (Dropdown with remote data (without custom controls))
1.0.0 October 17, 2016 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • clone this repo
  • $ npm i
  • $ gulp serve nobrowser

Asynchronous drop-down

By default the control uses mock data. If you want to test the control with SharePoint, change the commented sections in the DropdownWithRemoteDataWebPart.ts file inside the loadLists and loadItems functions and deploy the sample web part to your SharePoint developer tenant.

Drop-down with external data without using a custom control

By default the web part uses mock data. If you want to test it with SharePoint, change the commented sections in the DropdownWithRemoteDataWithoutCustomControlsWebPart.ts file inside the loadLists and loadItems methods and deploy the sample web part to your SharePoint tenant.

Features

Sample web parts in this solution illustrate the following concepts on top of the SharePoint Framework:

  • using React for building custom property pane controls for use with SharePoint Framework client-side web parts
  • building custom property pane controls using TypeScript
  • updating web part properties from custom property pane controls
  • linking multiple custom property pane controls together
  • loading data for use in custom property pane controls asynchronously without blocking the web part
  • forcing React components to repaint using an external trigger
  • displaying a custom loading indicator
  • reacting to web part property changes
  • updating properties of web part property pane controls
  • refreshing the web part property pane from web part