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.
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
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.
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.