UNPKG

shubhadownloader

Version:

There is large amount of information available in market place. The markets are always in sync. In today's world investors find it very difficult to make effective use of information available to them. Shubha Downloader is great tool which resolves this problem and helps investor to increase his productivity and stay focused on decision making. Shubha Downloader enable end user to download market data from available sources and organize it. Shubha Downloader is Open source & FREE utility for end users. Shubha Downloader have main features as follows End of the day market data from web to your favorite charting application . Fundamental market data from web to your favorite charting application. Market reports from web to your favorite charting application.

91 lines (76 loc) 2.94 kB
/** * @class Ext.calendar.form.field.CalendarCombo * @extends Ext.form.ComboBox * <p>A custom combo used for choosing from the list of available calendars to assign an event to.</p> * <p>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:<pre><code> fieldLabel: 'Calendar', triggerAction: 'all', queryMode: 'local', forceSelection: true, selectOnFocus: true, width: 200 </code></pre> * @constructor * @param {Object} config The config object */ Ext.define('Ext.calendar.form.field.CalendarCombo', { extend: 'Ext.form.field.ComboBox', alias: 'widget.calendarpicker', fieldLabel: 'Calendar', triggerAction: 'all', queryMode: 'local', forceSelection: true, selectOnFocus: true, // private defaultCls: 'ext-color-default', // private initComponent: function(){ this.valueField = Ext.calendar.data.CalendarMappings.CalendarId.name; this.displayField = Ext.calendar.data.CalendarMappings.Title.name; this.listConfig = Ext.apply(this.listConfig || {}, { getInnerTpl: this.getListItemTpl }); this.callParent(arguments); }, // private getListItemTpl: function(displayField) { return '<div class="x-combo-list-item ext-color-{' + Ext.calendar.data.CalendarMappings.CalendarId.name + '}"><div class="ext-cal-picker-icon">&#160;</div>{' + displayField + '}</div>'; }, // private afterRender: function(){ this.callParent(arguments); this.wrap = this.el.down('.x-form-item-body'); this.wrap.addCls('ext-calendar-picker'); this.icon = Ext.core.DomHelper.append(this.wrap, { tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon' }); }, /* @private * Value can be a data value or record, or an array of values or records. */ getStyleClass: function(value){ var val = value; if (!Ext.isEmpty(val)) { if (Ext.isArray(val)) { val = val[0]; } return 'ext-color-' + (val.data ? val.data[Ext.calendar.data.CalendarMappings.CalendarId.name] : val); } return ''; }, // inherited docs setValue: function(value) { if (!value && this.store.getCount() > 0) { // ensure that a valid value is always set if possible value = this.store.getAt(0).data[Ext.calendar.data.CalendarMappings.CalendarId.name]; } if (this.wrap && value) { var currentClass = this.getStyleClass(this.getValue()), newClass = this.getStyleClass(value); this.wrap.replaceCls(currentClass, newClass); } this.callParent(arguments); } });