flash.js.svn-base

来自「一个使用ssh+ext的例子。 希望对开发这个应用的人带来好处。仔细研究里面的」· SVN-BASE 代码 · 共 40 行

SVN-BASE
40
字号
Ext.namespace("Neo");
Ext.namespace("Neo.frontdesk");

Neo.frontdesk.flash = Ext.extend(Ext.ux.FusionPanel,{
		initComponent: function(){
		var getTools = function(){
	    return [{id:'gear', handler:function(e,t,p){ p.refreshMedia();},qtip: {text:'Refresh the Chart'}  },
	             {id:'print', handler:function(e,t,p){ p.print();},qtip: {text:'Print the Chart'}  }
	           ];};
	
		var chartEvents = {
		           //'mousemove':function(){console.log(['mousemove',arguments])}
		        };
		var pie3D = 'public/swf/charts/Pie3D.swf';
		var Column3D = 'public/swf/charts/Column3D.swf';
		Ext.apply (this,{
	        collapsible : true,
	        floating:false,
	        fusionCfg   :{ id   : 'chart1'
	                      ,listeners: chartEvents
	                   },
	        autoScroll : true,
	        //id       : 'chartpanel',
	        chartURL :  Column3D,
	       // dataURL  : 'public/swf/charts/Column3D.xml',
	        listeners :{
	            show  : function(p){if(p.floating)p.setPosition(p.x||10,p.y||10);}
	            //,chartload : function(p,obj){console.log('chart '+obj.id+' loaded.')},
	            //,chartrender : function(p,obj){console.log('chart '+obj.id+' rendered.')}
	        }
	        //tools:getTools()
		});
		Neo.frontdesk.flash.superclass.initComponent.apply(this,arguments);
	}
	,onRender:function(){
			Neo.frontdesk.flash.superclass.onRender.apply(this,arguments);
	}
	//,afterRender:function(){};
});
Ext.reg('flash',Neo.frontdesk.flash);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?