source: trunk/web/addons/job_monarch/lib/extjs/source/widgets/menu/ColorItem.js @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 800 bytes
Line 
1/*
2 * Ext JS Library 2.2.1
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9/**
10 * @class Ext.menu.ColorItem
11 * @extends Ext.menu.Adapter
12 * A menu item that wraps the {@link Ext.ColorPalette} component.
13 * @constructor
14 * Creates a new ColorItem
15 * @param {Object} config Configuration options
16 */
17Ext.menu.ColorItem = function(config){
18    Ext.menu.ColorItem.superclass.constructor.call(this, new Ext.ColorPalette(config), config);
19    /** The Ext.ColorPalette object @type Ext.ColorPalette */
20    this.palette = this.component;
21    this.relayEvents(this.palette, ["select"]);
22    if(this.selectHandler){
23        this.on('select', this.selectHandler, this.scope);
24    }
25};
26Ext.extend(Ext.menu.ColorItem, Ext.menu.Adapter);
Note: See TracBrowser for help on using the repository browser.