X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/calendar/src/widgets/CalendarPicker.js diff --git a/examples/calendar/src/widgets/CalendarPicker.js b/examples/calendar/src/widgets/CalendarPicker.js deleted file mode 100644 index 80bf99a5..00000000 --- a/examples/calendar/src/widgets/CalendarPicker.js +++ /dev/null @@ -1,66 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/** - * @class Ext.calendar.CalendarPicker - * @extends Ext.form.ComboBox - *

A custom combo used for choosing from the list of available calendars to assign an event to.

- *

This is pretty much a standard combo that is simply pre-configured for the options needed by the - * calendar components. The default configs are as follows:


-    fieldLabel: 'Calendar',
-    valueField: 'CalendarId',
-    displayField: 'Title',
-    triggerAction: 'all',
-    mode: 'local',
-    forceSelection: true,
-    width: 200
-
- * @constructor - * @param {Object} config The config object - */ -Ext.calendar.CalendarPicker = Ext.extend(Ext.form.ComboBox, { - fieldLabel: 'Calendar', - valueField: 'CalendarId', - displayField: 'Title', - triggerAction: 'all', - mode: 'local', - forceSelection: true, - width: 200, - - // private - initComponent: function() { - Ext.calendar.CalendarPicker.superclass.initComponent.call(this); - this.tpl = this.tpl || - '
 
{' + this.displayField + '}
'; - }, - - // private - afterRender: function() { - Ext.calendar.CalendarPicker.superclass.afterRender.call(this); - - this.wrap = this.el.up('.x-form-field-wrap'); - this.wrap.addClass('ext-calendar-picker'); - - this.icon = Ext.DomHelper.append(this.wrap, { - tag: 'div', - cls: 'ext-cal-picker-icon ext-cal-picker-mainicon' - }); - }, - - // inherited docs - setValue: function(value) { - this.wrap.removeClass('ext-color-' + this.getValue()); - if (!value && this.store !== undefined) { - // always default to a valid calendar - value = this.store.getAt(0).data.CalendarId; - } - Ext.calendar.CalendarPicker.superclass.setValue.call(this, value); - this.wrap.addClass('ext-color-' + value); - } -}); - -Ext.reg('calendarpicker', Ext.calendar.CalendarPicker);