📄 olapgridtest.xml
字号:
<?xml version="1.0"?><!-- This is a very simple test app using a dummy data model extending BiOlapGridDataModel--><Application> <Window caption="OLAP Grid Test" width="800" height="600"> <OlapGrid id="g" left="5" top="5" right="5" bottom="5"> <OlapGrid.dataModel> <MyOlapDataModel/> </OlapGrid.dataModel> <OlapGrid.viewManager> <OlapGridViewManager showGridLines="false"/> </OlapGrid.viewManager> </OlapGrid> </Window> <Resources> <Package name="OlapGrid"/> <Script><![CDATA[function MyOlapDataModel(){ BiOlapGridDataModel.call(this);}_p = MyOlapDataModel.prototype = new BiOlapGridDataModel;_p.getAxisDimensionCount = function ( nAxis ){ if ( nAxis == 0 ) return 4; return 3;};_p.getAxisPositionWidth = function ( nAxis ){ if ( nAxis == 0 ) return 80; return 300;};_p.getAxisCellWidth = function ( nAxis, nDim, nPos ){ if ( nAxis == 0 ) return Math.pow( 2, 3 - nDim ); if ( nDim == 0 ) return 15; if ( nDim == 1 ) return 3; return 1;};_p.getCellText = function ( x, y ){ return y + ", " + x;}; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -