X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/b37ceabb82336ee82757cd32efe353cfab8ec267..f5240829880f87e0cf581c6a296e436fdef0ef80:/examples/calendar/src/widgets/CalendarPicker.js?ds=sidebyside diff --git a/examples/calendar/src/widgets/CalendarPicker.js b/examples/calendar/src/widgets/CalendarPicker.js new file mode 100644 index 00000000..240e0878 --- /dev/null +++ b/examples/calendar/src/widgets/CalendarPicker.js @@ -0,0 +1,66 @@ +/*! + * Ext JS Library 3.3.0 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.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 ||
+ '