Skip to content

A simple PCF control to render a two option field as a colourful slider

License

Notifications You must be signed in to change notification settings

jasonaalmeida/PCF_ColourSlider

Repository files navigation

PCF - Colour Slider

A simple PCF control to render a two option field as a colourful slider. This is an updated version of the OOTB flip switch, with better use of the available space and correct vertical alignment.

Slider Preview gif

Configuration

The colour slider uses the following CDS attribute properties to render the control (image below):

  1. The List Value Label is displayed against the corresponding true/false value
  2. The Colour defined against the list value is used as the background colour when the respective value is selected

Two Option List Value Configuration

CDS Solution

For covienence, the releases folder contains a generated solution file

About

A simple PCF control to render a two option field as a colourful slider

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published