Posts

Showing posts with the label remove the default colors from the color fields dialog

Remove the default colors from Colorfield dialog in AEM

Image
Add the property showDefaultColors="{Boolean}false"   Once you will add this property. All the default colors will be disappear from the colorfield dialog. You can show your custom colors as per the requirement. Please see the below for the reference.  <backgroundColor jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/colorfield"     showDefaultColors="{Boolean}false"     text="Background Color"     fieldLabel="Background Color"     name="./backgroundColor"     showProperties="{Boolean}false">   <items jcr:primaryType="nt:unstructured"> <red jcr:primaryType="nt:unstructured" value="#FF0000"/>     <white jcr:primaryType="nt:unstructured" value="#FFFFFF"/>     <black jcr:primaryType="nt:unstructured" value="#000000"/>   </items> </backgroundColor> Yo...