[pve-devel] r6088 - pve-manager/pve2/www/apidoc

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jun 16 08:55:30 CEST 2011


Author: dietmar
Date: 2011-06-16 08:55:30 +0200 (Thu, 16 Jun 2011)
New Revision: 6088

Modified:
   pve-manager/pve2/www/apidoc/PVEAPI.js
Log:
use grouping feature


Modified: pve-manager/pve2/www/apidoc/PVEAPI.js
===================================================================
--- pve-manager/pve2/www/apidoc/PVEAPI.js	2011-06-16 06:25:57 UTC (rev 6087)
+++ pve-manager/pve2/www/apidoc/PVEAPI.js	2011-06-16 06:55:30 UTC (rev 6088)
@@ -100,6 +100,7 @@
 			proxy: {
 			    type: 'memory'
 			},
+			groupField: 'optional',
 			sorters: [
 			    {
 				property: 'name',
@@ -115,9 +116,15 @@
 
 		    pstore.sort();
 
+		    var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
+			enableGroupingMenu: false,
+			groupHeaderTpl: '<tpl if="name">Optional</tpl><tpl if="!name">Required</tpl>'
+		    });
+
 		    sections.push({
 			xtype: 'gridpanel',
 			title: 'Parameters',
+			features: [groupingFeature],
 			store: pstore,
 			viewConfig: {
 			    trackOver: false,
@@ -129,10 +136,6 @@
 				dataIndex: 'name'
 			    },
 			    { 
-				header: 'Optional',
-				dataIndex: 'optional'
-			    },
-			    { 
 				header: 'Type',
 				dataIndex: 'type',
 				renderer: render_type,



More information about the pve-devel mailing list