London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Color Picker property in Episerver

Vote:
 

Hi,

I want to add a Colorpicker property in CMS which shows all the colors.

I have used dijit/ColorPalatte but it only shows limited colors.

For example .. [Display(Name = "Background Color", GroupName = PropertyGroupNames.Content, Order = 20)]
[ClientEditor(ClientEditingClass = "dijit/ColorPalette")]
public virtual string BackgroundColor { get; set; }

Please suggest.

#226091
Aug 04, 2020 10:22
Sanjay Kumar - Aug 04, 2020 12:30
Hi Tanvi,
Please refer Håkon Nordli blog to manage more color lists https://world.episerver.com/blogs/hakon-nordli/dates/2015/9/dojo--a-color-picker-widget/ and download Github repo.
Vote:
 

Hello Tanvi 

This post may help, specfically the comment from Ben McKernan on configuring the picker: https://world.episerver.com/blogs/Steve-Celius/Dates/2015/5/simple-color-picker-property/

David

#226096
Edited, Aug 04, 2020 13:39
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.