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.

100 lines (85 loc) 3.13 kB
/** * @class Ext.calendar.view.DayHeader * @extends Ext.calendar.MonthView * <p>This is the header area container within the day and week views where all-day events are displayed. * Normally you should not need to use this class directly -- instead you should use {@link Ext.calendar.DayView DayView} * which aggregates this class and the {@link Ext.calendar.DayBodyView DayBodyView} into the single unified view * presented by {@link Ext.calendar.CalendarPanel CalendarPanel}.</p> * @constructor * @param {Object} config The config object */ Ext.define('Ext.calendar.view.DayHeader', { extend: 'Ext.calendar.view.Month', alias: 'widget.dayheaderview', requires: [ 'Ext.calendar.template.DayHeader' ], // private configs weekCount: 1, dayCount: 1, allDayOnly: true, monitorResize: false, /** * @event dayclick * Fires after the user clicks within the day view container and not on an event element * @param {Ext.calendar.DayBodyView} this * @param {Date} dt The date/time that was clicked on * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the * DayHeaderView always return true for this param. * @param {Ext.core.Element} el The Element that was clicked on */ // private afterRender: function() { if (!this.tpl) { this.tpl = new Ext.calendar.template.DayHeader({ id: this.id, showTodayText: this.showTodayText, todayText: this.todayText, showTime: this.showTime }); } this.tpl.compile(); this.addCls('ext-cal-day-header'); this.callParent(arguments); }, // private forceSize: Ext.emptyFn, // private refresh: function() { this.callParent(arguments); this.recalcHeaderBox(); }, // private recalcHeaderBox : function(){ var tbl = this.el.down('.ext-cal-evt-tbl'), h = tbl.getHeight(); this.el.setHeight(h+7); // These should be auto-height, but since that does not work reliably // across browser / doc type, we have to size them manually this.el.down('.ext-cal-hd-ad-inner').setHeight(h+5); this.el.down('.ext-cal-bg-tbl').setHeight(h+5); }, // private moveNext: function(noRefresh) { return this.moveDays(this.dayCount, noRefresh); }, // private movePrev: function(noRefresh) { return this.moveDays( - this.dayCount, noRefresh); }, // private onClick: function(e, t) { var el = e.getTarget('td', 3), parts, dt; if (el) { if (el.id && el.id.indexOf(this.dayElIdDelimiter) > -1) { parts = el.id.split(this.dayElIdDelimiter); dt = parts[parts.length - 1]; this.fireEvent('dayclick', this, Ext.Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt))); return; } } this.callParent(arguments); } });