Properties Methods Events Config Options Direct Link
Observable
  Component
    ColorPalette

Class CQ.Ext.ColorPalette

Package:CQ.Ext
Class:ColorPalette
Extends:CQ.Ext.Component
Clientlib:cq.widgets
xtype:colorpalette
Simple color palette class for choosing colors. The palette can be rendered to any container.
Here's an example of typical usage:
var cp = new CQ.Ext.ColorPalette({value:'993300'});  // initial selected color
cp.render('my-div');

cp.on('select', function(palette, selColor){
    // do something with selColor
});

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  itemCls : String
The CSS class to apply to the containing element (defaults to 'x-color-palette')
ColorPalette
  tpl : String
An existing XTemplate instance to be used in place of the default template for rendering the component.
ColorPalette

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By