Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27 jpm 1
/*
2
 * Ext JS Library 2.0.2
3
 * Copyright(c) 2006-2008, Ext JS, LLC.
4
 * licensing@extjs.com
5
 *
6
 * http://extjs.com/license
7
 */
8
 
9
/**
10
 * @class Ext.menu.ColorMenu
11
 * @extends Ext.menu.Menu
12
 * A menu containing a {@link Ext.menu.ColorItem} component (which provides a basic color picker).
13
 * @constructor
14
 * Creates a new ColorMenu
15
 * @param {Object} config Configuration options
16
 */
17
Ext.menu.ColorMenu = function(config){
18
    Ext.menu.ColorMenu.superclass.constructor.call(this, config);
19
    this.plain = true;
20
    var ci = new Ext.menu.ColorItem(config);
21
    this.add(ci);
22
    /**
23
     * The {@link Ext.ColorPalette} instance for this ColorMenu
24
     * @type ColorPalette
25
     */
26
    this.palette = ci.palette;
27
    /**
28
     * @event select
29
     * @param {ColorPalette} palette
30
     * @param {String} color
31
     */
32
    this.relayEvents(ci, ["select"]);
33
};
34
Ext.extend(Ext.menu.ColorMenu, Ext.menu.Menu);