X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/docs/source/ColorMenu.html diff --git a/docs/source/ColorMenu.html b/docs/source/ColorMenu.html index c15b62d5..1beb96af 100644 --- a/docs/source/ColorMenu.html +++ b/docs/source/ColorMenu.html @@ -1,11 +1,17 @@ - - - The source code - - - - -
/** + + + The source code + + + + +
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+
/** * @class Ext.menu.ColorMenu * @extends Ext.menu.Menu *

A menu containing a {@link Ext.ColorPalette} Component.

@@ -45,6 +51,14 @@ */ hideOnClick : true, + cls : 'x-color-menu', + +
/** + * @cfg {String} paletteId + * An id to assign to the underlying color palette. Defaults to null. + */ + paletteId : null, +
/** * @cfg {Number} maxHeight * @hide @@ -74,7 +88,9 @@ Ext.apply(this, { plain: true, showSeparator: false, - items: this.palette = new Ext.ColorPalette(this.initialConfig) + items: this.palette = new Ext.ColorPalette(Ext.applyIf({ + id: this.paletteId + }, this.initialConfig)) }); this.palette.purgeListeners(); Ext.menu.ColorMenu.superclass.initComponent.call(this); @@ -82,7 +98,7 @@ * @event select * Fires when a color is selected from the {@link #palette Ext.ColorPalette} * @param {Ext.ColorPalette} palette The {@link #palette Ext.ColorPalette} - * @param {String} color The 6-digit color hex code (without the # symbol) + * @param {String} color The 6-digit color hex code (without the # symbol) */ this.relayEvents(this.palette, ['select']); this.on('select', this.menuHide, this); @@ -98,6 +114,6 @@ } }); Ext.reg('colormenu', Ext.menu.ColorMenu); -
- +
+ \ No newline at end of file