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.

52 lines (40 loc) 1.45 kB
/** * This plugin allow you to reorder tabs of a TabPanel. */ Ext.define('Ext.ux.TabReorderer', { extend: 'Ext.ux.BoxReorderer', itemSelector: '.x-tab', init: function(tabPanel) { var me = this; me.callParent([tabPanel.getTabBar()]); // Ensure reorderable property is copied into dynamically added tabs tabPanel.onAdd = Ext.Function.createSequence(tabPanel.onAdd, me.onAdd); }, afterFirstLayout: function() { var tabs, len, i = 0, tab; this.callParent(arguments); // Copy reorderable property from card into tab for (tabs = this.container.items.items, len = tabs.length; i < len; i++) { tab = tabs[i]; if (tab.card) { tab.reorderable = tab.card.reorderable; } } }, onAdd: function(card, index) { card.tab.reorderable = card.reorderable; }, afterBoxReflow: function() { var me = this; // Cannot use callParent, this is not called in the scope of this plugin, but that of its Ext.dd.DD object Ext.ux.BoxReorderer.prototype.afterBoxReflow.apply(me, arguments); // Move the associated card to match the tab order if (me.dragCmp) { me.container.tabPanel.setActiveTab(me.dragCmp.card); me.container.tabPanel.move(me.startIndex, me.curIndex); } } });