Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / docs / source / ColorMenu.html
index c15b62d..1beb96a 100644 (file)
@@ -1,11 +1,17 @@
-<html>\r
-<head>\r
-  <title>The source code</title>\r
-    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
-    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js"><div id="cls-Ext.menu.ColorMenu"></div>/**\r
+<html>
+<head>
+  <title>The source code</title>
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body  onload="prettyPrint();">
+    <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+<div id="cls-Ext.menu.ColorMenu"></div>/**\r
  * @class Ext.menu.ColorMenu\r
  * @extends Ext.menu.Menu\r
  * <p>A menu containing a {@link Ext.ColorPalette} Component.</p>\r
      */\r
     hideOnClick : true,\r
     \r
+    cls : 'x-color-menu',\r
+    \r
+    <div id="cfg-Ext.menu.ColorMenu-paletteId"></div>/** \r
+     * @cfg {String} paletteId\r
+     * An id to assign to the underlying color palette. Defaults to <tt>null</tt>.\r
+     */\r
+    paletteId : null,\r
+    \r
     <div id="cfg-Ext.menu.ColorMenu-maxHeight"></div>/** \r
      * @cfg {Number} maxHeight\r
      * @hide \r
@@ -74,7 +88,9 @@
         Ext.apply(this, {\r
             plain: true,\r
             showSeparator: false,\r
-            items: this.palette = new Ext.ColorPalette(this.initialConfig)\r
+            items: this.palette = new Ext.ColorPalette(Ext.applyIf({\r
+                id: this.paletteId\r
+            }, this.initialConfig))\r
         });\r
         this.palette.purgeListeners();\r
         Ext.menu.ColorMenu.superclass.initComponent.call(this);\r
@@ -82,7 +98,7 @@
          * @event select\r
          * Fires when a color is selected from the {@link #palette Ext.ColorPalette}\r
          * @param {Ext.ColorPalette} palette The {@link #palette Ext.ColorPalette}\r
-            * @param {String} color The 6-digit color hex code (without the # symbol)\r
+         * @param {String} color The 6-digit color hex code (without the # symbol)\r
          */\r
         this.relayEvents(this.palette, ['select']);\r
         this.on('select', this.menuHide, this);\r
     }\r
 });\r
 Ext.reg('colormenu', Ext.menu.ColorMenu);\r
-</pre>    \r
-</body>\r
+</pre>
+</body>
 </html>
\ No newline at end of file