2022-08-01 10:23:36 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-08-01 10:11:22 +10:00
2022-08-01 10:11:22 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-06-24 08:14:28 +10:00
2022-08-01 10:11:22 +10:00
2022-06-24 15:59:19 +10:00
2022-08-01 10:23:36 +10:00
2022-06-30 10:16:32 +10:00
2022-06-24 08:14:28 +10:00

palette-picker

Summary

Custom Property Pane pain resolved (whew), color palette generator inspired by Jhey. Built it to get an understanding of Property Pane Portal and cuz I want to eventually build in a dynamic palette generator/css reader for my web parts.

Used SharePoint Framework Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

Any special pre-requisites?

Solution

Solution Author(s)
react Palette Picker Web Part Linda K

Version history

Version Date Comments
1.0 August, 2022 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 repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • npm install
    • gulp serve

Include any additional steps as needed.

Features

Next step is see if I can make prism work with it (as per inspiring example), and then to have the generated colors applied to web part elements.

property pane view after save and refresh

This web part illustrates the following concepts:

  • custom property pane
  • dynamic css in spFx property pane (and later beyond)
  • custom css colour on dropdown options

Notice that better pictures and documentation will increase the sample usage and the value you are providing for others. Thanks for your submissions advance.

Share your web part with others through Microsoft 365 Patterns and Practices program to get visibility and exposure. More details on the community, open-source projects and other activities from http://aka.ms/m365pnp.

References

Description
SharePoint Framework web part, Teams tab, personal app, app page samples
Readme MIT 2.7 GiB
Languages
TypeScript 53.1%
JavaScript 25%
SCSS 19.8%
Shell 2.1%