Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / Color.html
index 03bf64c..1130e2a 100644 (file)
@@ -1,4 +1,21 @@
-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-picker.Color-method-constructor'><span id='Ext-picker.Color'>/**
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>The source code</title>
+  <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+  <script type="text/javascript" src="../prettify/prettify.js"></script>
+  <style type="text/css">
+    .highlight { display: block; background-color: #ddd; }
+  </style>
+  <script type="text/javascript">
+    function highlight() {
+      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+    }
+  </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+  <pre class="prettyprint lang-js"><span id='Ext-picker-Color-method-constructor'><span id='Ext-picker-Color'>/**
 </span></span> * @class Ext.picker.Color
  * @extends Ext.Component
  * &lt;p&gt;ColorPicker provides a simple color palette for choosing colors. The picker can be rendered to any container.
@@ -30,38 +47,38 @@ Ext.define('Ext.picker.Color', {
     alias: 'widget.colorpicker',
     alternateClassName: 'Ext.ColorPalette',
     
-<span id='Ext-picker.Color-cfg-componentCls'>    /**
+<span id='Ext-picker-Color-cfg-componentCls'>    /**
 </span>     * @cfg {String} componentCls
      * The CSS class to apply to the containing element (defaults to 'x-color-picker')
      */
     componentCls : Ext.baseCSSPrefix + 'color-picker',
     
-<span id='Ext-picker.Color-cfg-selectedCls'>    /**
+<span id='Ext-picker-Color-cfg-selectedCls'>    /**
 </span>     * @cfg {String} selectedCls
      * The CSS class to apply to the selected element
      */
     selectedCls: Ext.baseCSSPrefix + 'color-picker-selected',
     
-<span id='Ext-picker.Color-cfg-value'>    /**
+<span id='Ext-picker-Color-cfg-value'>    /**
 </span>     * @cfg {String} value
      * The initial color to highlight (should be a valid 6-digit color hex code without the # symbol).  Note that
      * the hex codes are case-sensitive.
      */
     value : null,
     
-<span id='Ext-picker.Color-cfg-clickEvent'>    /**
+<span id='Ext-picker-Color-cfg-clickEvent'>    /**
 </span>     * @cfg {String} clickEvent
      * The DOM event that will cause a color to be selected. This can be any valid event name (dblclick, contextmenu).
      * Defaults to &lt;tt&gt;'click'&lt;/tt&gt;.
      */
     clickEvent :'click',
 
-<span id='Ext-picker.Color-cfg-allowReselect'>    /**
+<span id='Ext-picker-Color-cfg-allowReselect'>    /**
 </span>     * @cfg {Boolean} allowReselect If set to true then reselecting a color that is already selected fires the {@link #select} event
      */
     allowReselect : false,
 
-<span id='Ext-picker.Color-property-colors'>    /**
+<span id='Ext-picker-Color-property-colors'>    /**
 </span>     * &lt;p&gt;An array of 6-digit color hex code strings (without the # symbol).  This array can contain any number
      * of colors, and each hex code should be unique.  The width of the picker is controlled via CSS by adjusting
      * the width property of the 'x-color-picker' class (or assigning a custom class), so you can balance the number
@@ -87,7 +104,7 @@ cp.colors = ['000000', '993300', '333300'];
         'FF99CC', 'FFCC99', 'FFFF99', 'CCFFCC', 'CCFFFF', '99CCFF', 'CC99FF', 'FFFFFF'
     ],
 
-<span id='Ext-picker.Color-cfg-handler'>    /**
+<span id='Ext-picker-Color-cfg-handler'>    /**
 </span>     * @cfg {Function} handler
      * Optional. A function that will handle the select event of this picker.
      * The handler is passed the following parameters:&lt;div class=&quot;mdetail-params&quot;&gt;&lt;ul&gt;
@@ -95,7 +112,7 @@ cp.colors = ['000000', '993300', '333300'];
      * &lt;li&gt;&lt;code&gt;color&lt;/code&gt; : String&lt;div class=&quot;sub-desc&quot;&gt;The 6-digit color hex code (without the # symbol).&lt;/div&gt;&lt;/li&gt;
      * &lt;/ul&gt;&lt;/div&gt;
      */
-<span id='Ext-picker.Color-cfg-scope'>    /**
+<span id='Ext-picker-Color-cfg-scope'>    /**
 </span>     * @cfg {Object} scope
      * The scope (&lt;tt&gt;&lt;b&gt;this&lt;/b&gt;&lt;/tt&gt; reference) in which the &lt;code&gt;{@link #handler}&lt;/code&gt;
      * function will be called.  Defaults to this ColorPicker instance.
@@ -114,7 +131,7 @@ cp.colors = ['000000', '993300', '333300'];
         
         this.callParent(arguments);
         me.addEvents(
-<span id='Ext-picker.Color-event-select'>            /**
+<span id='Ext-picker-Color-event-select'>            /**
 </span>             * @event select
              * Fires when a color is selected
              * @param {Ext.picker.Color} this
@@ -172,7 +189,7 @@ cp.colors = ['000000', '993300', '333300'];
         }
     },
 
-<span id='Ext-picker.Color-method-select'>    /**
+<span id='Ext-picker-Color-method-select'>    /**
 </span>     * Selects the specified color in the picker (fires the {@link #select} event)
      * @param {String} color A valid 6-digit color hex code (# will be stripped if included)
      * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to &lt;tt&gt;false&lt;/tt&gt;.
@@ -205,7 +222,7 @@ cp.colors = ['000000', '993300', '333300'];
         }
     },
     
-<span id='Ext-picker.Color-method-getValue'>    /**
+<span id='Ext-picker-Color-method-getValue'>    /**
 </span>     * Get the currently selected color value.
      * @return {String} value The selected value. Null if nothing is selected.
      */
@@ -213,4 +230,6 @@ cp.colors = ['000000', '993300', '333300'];
         return this.value || null;
     }
 });
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>