function columnWrap(val){ return '
This page presents catalogs and time tables available in the on-line analysis tool \ AMDA \ (see the "Shared" folders). These items come from published articles or \ community/project websites and can be downloaded in several formats \ (VOTable, \ HPEvents \ or ASCII compliant with AMDA). They can be uploaded in other analysis \ tools like 3DView, \ SciQLop, ...
', } ] }); var grid = Ext.create('Ext.grid.Panel', { xtype:'grouped-grid', region: 'center', requires: [ 'Ext.grid.feature.Grouping' ], store: store, features: [{ ftype: 'grouping', groupHeaderTpl: '{columnName}: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})', hideGroupedHeader: true, startCollapsed: true, id: 'typeGrouping' }], columns: [ //{ text: 'Id', width:100, dataIndex: 'id' }, { text: 'Name', width:100, dataIndex: 'name' }, { text: 'Description', flex:1, dataIndex: 'description', renderer:columnWrap }, { text: '#', width:50, dataIndex: 'nbIntervals',tooltip: 'Number of line',align:'center' }, { text: 'Survey start', width:135, dataIndex: 'surveyStart' }, { text: 'Survey stop', width:135, dataIndex: 'surveyStop' }, { text: 'Creation date', width:135, dataIndex: 'created' }, { text: 'Sharing date', width:135, dataIndex: 'sharedDate' }, { text: 'Type', dataIndex: 'type' }, { width: 40, menuDisabled: true, xtype: 'actioncolumn', tooltip: 'Download the shared TT/Cat', align: 'center', renderer: function(value, metaData, record, rowIndex, colIndex, store) { var buttonId = Ext.id(); Ext.defer(function() { var button = Ext.create('Ext.button.Button', { icon: 'js/resources/images/16x16/download_manager.png', renderTo: buttonId, menu: [ { text: 'ASCII', handler: function() { window.open( dlLink('ASCII', record), '_blank');} }, { text: 'VOTable', handler: function() { window.open( dlLink('VOTable', record), '_blank');} }, { text: 'HPEvent', handler: function() {window.open( dlLink('HPEvent', record), '_blank');} }, ] }); }, 10); return ''; } } ] }); var win = Ext.create('Ext.window.Window', { width: 1100, height: 675, title: 'List of shared catalogs and time tables', closable:false, autoScroll : true, maximizable: true, layout: 'border', items: [ presentationPanel, grid ] }).show(); });