[pve-devel] [PATCH docs 2/2] api-viewer: adapt and add flex for parameter coolumns
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Dec 21 11:36:37 CET 2017
Allow to use space better on higher resolutions.
Names, Defaults and Types can be read comfortably without the need of
resizing the colum width manually each time.
Cleanup trailing whithespace in the surrounding area.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
api-viewer/PVEAPI.js | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/api-viewer/PVEAPI.js b/api-viewer/PVEAPI.js
index 5d774e9..394dda1 100644
--- a/api-viewer/PVEAPI.js
+++ b/api-viewer/PVEAPI.js
@@ -154,30 +154,33 @@ Ext.onReady(function() {
stripeRows: true
},
columns: [
- {
+ {
header: 'Name',
- dataIndex: 'name'
+ dataIndex: 'name',
+ flex: 1
},
- {
+ {
header: 'Type',
dataIndex: 'type',
renderer: render_type,
+ flex: 1
},
{
header: 'Default',
dataIndex: 'default',
+ flex: 1
},
{
header: 'Format',
dataIndex: 'type',
renderer: render_format,
- flex: 1
+ flex: 2
},
- {
+ {
header: 'Description',
dataIndex: 'description',
renderer: render_description,
- flex: 2
+ flex: 6
}
]
});
--
2.11.0
More information about the pve-devel
mailing list