0

I have made a application for SharePoint online and want the users to be able to customize every element like the background color font color etc. I would like to have a color pallet that the user can pick from like this:

enter image description here

I know SharePoint have its limitations but is this possible to accomplish? I want it to be under the Edit web part options.

Community
  • 1
  • 1
PEPEGA
  • 2,214
  • 20
  • 37

1 Answers1

0

There is a jscolor library which allow user select color, while you may need store the value with proper policy so you could use it in future(Or store in a SharePoint list).localStorage, sessionStorage, session and cookies

Then, set element CSS by jQuery.

Lee
  • 5,305
  • 1
  • 6
  • 12
  • But how can i get it in the option list of the web part? Currently it looks like this https://i.gyazo.com/86041569c66fc3224a0e82c4585c1773.png And I dont want it to list 100+ colors and neither have hex color input field. – PEPEGA Mar 14 '18 at 08:14
  • You have to create a configuration page for your web part as we can't create custom control/logic in OOB property panel. – Lee Mar 14 '18 at 09:20