X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Color.html diff --git a/docs/source/Color.html b/docs/source/Color.html index 03bf64cb..115dea49 100644 --- a/docs/source/Color.html +++ b/docs/source/Color.html @@ -1,5 +1,22 @@ -
+ +/** - * @class Ext.picker.Color + + + + +\ No newline at end of file +The source code + + + + + + +/** + * @class Ext.picker.Color * @extends Ext.Component * <p>ColorPicker provides a simple color palette for choosing colors. The picker can be rendered to any container. * The available default to a standard 40-color palette; this can be customized with the {@link #colors} config.</p> @@ -18,11 +35,6 @@ cp.on('select', function(picker, selColor){ </code></pre> * {@img Ext.picker.Color/Ext.picker.Color.png Ext.picker.Color component} * - * @constructor - * Create a new ColorPicker - * @param {Object} config The config object - * - * @xtype colorpicker */ Ext.define('Ext.picker.Color', { extend: 'Ext.Component', @@ -30,38 +42,38 @@ Ext.define('Ext.picker.Color', { alias: 'widget.colorpicker', alternateClassName: 'Ext.ColorPalette', - /** + /** * @cfg {String} componentCls * The CSS class to apply to the containing element (defaults to 'x-color-picker') */ componentCls : Ext.baseCSSPrefix + 'color-picker', - /** + /** * @cfg {String} selectedCls * The CSS class to apply to the selected element */ selectedCls: Ext.baseCSSPrefix + 'color-picker-selected', - /** + /** * @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, - /** + /** * @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 <tt>'click'</tt>. */ clickEvent :'click', - /** + /** * @cfg {Boolean} allowReselect If set to true then reselecting a color that is already selected fires the {@link #select} event */ allowReselect : false, - /** + /** * <p>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 +99,7 @@ cp.colors = ['000000', '993300', '333300']; 'FF99CC', 'FFCC99', 'FFFF99', 'CCFFCC', 'CCFFFF', '99CCFF', 'CC99FF', 'FFFFFF' ], - /** + /** * @cfg {Function} handler * Optional. A function that will handle the select event of this picker. * The handler is passed the following parameters:<div class="mdetail-params"><ul> @@ -95,7 +107,7 @@ cp.colors = ['000000', '993300', '333300']; * <li><code>color</code> : String<div class="sub-desc">The 6-digit color hex code (without the # symbol).</div></li> * </ul></div> */ - /** + /** * @cfg {Object} scope * The scope (<tt><b>this</b></tt> reference) in which the <code>{@link #handler}</code> * function will be called. Defaults to this ColorPicker instance. @@ -114,7 +126,7 @@ cp.colors = ['000000', '993300', '333300']; this.callParent(arguments); me.addEvents( - /** + /** * @event select * Fires when a color is selected * @param {Ext.picker.Color} this @@ -172,7 +184,7 @@ cp.colors = ['000000', '993300', '333300']; } }, - /** + /** * 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 <tt>false</tt>. @@ -205,7 +217,7 @@ cp.colors = ['000000', '993300', '333300']; } }, - /** + /** * Get the currently selected color value. * @return {String} value The selected value. Null if nothing is selected. */ @@ -213,4 +225,6 @@ cp.colors = ['000000', '993300', '333300']; return this.value || null; } }); -