Commit Graph

13 Commits

Author SHA1 Message Date
Dominik Csapak
ce9a0f27cd save index on keydown and check on keyup
so that the edit window does not open again when pressing enter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-05-02 15:53:35 +02:00
Dominik Csapak
9307eda498 allow pressing enter in ObjectGrids to edit a field
for this we need to overwrite the 'run_editor' function
of the ObjectGrid if we use a custom one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-06 13:46:36 +02:00
Dominik Csapak
37d8d60201 add labelWidth to the fieldDefaults in add_*_row
this resizes the editwindow to the correct size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-16 16:01:57 +01:00
Dominik Csapak
0d5c5e14c8 add an optional renderer for integer rows in ObjectGrid
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-16 11:35:35 +01:00
Thomas Lamprecht
85d85d151c ObjectGrid: add_text_row: allow setting vtype for editor
Allow setting a validation type for the editors text field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-07 12:00:27 +01:00
Dietmar Maurer
4297e79537 ObjectGrid.js: new monStoreErrors properties 2017-04-07 06:31:34 +02:00
Dietmar Maurer
8f7370eea1 grid/ObjectGrid.js: new helper add_combobox_row() 2017-03-01 07:44:58 +01:00
Dietmar Maurer
c2ea01377e ObjectGrid: avoid static definition of rows
Else all grids use the same data.
2017-02-25 11:07:37 +01:00
Dietmar Maurer
5dea30d081 ObjectGrid: new helper add_text_row 2017-02-25 10:56:50 +01:00
Dietmar Maurer
28e54f37df new helper Proxmox.Utils.compute_min_label_width() 2017-02-25 10:47:20 +01:00
Dietmar Maurer
0e49da6db9 ObjectGrid: add helpers to add editor 2017-02-24 17:43:49 +01:00
Dietmar Maurer
7ec6cd9e86 ObjectGrid: add run_editor() and reload() helpers 2017-02-24 10:50:03 +01:00
Dietmar Maurer
0669450939 add TimeView, TimeEdit and TaskViewer 2017-01-30 13:40:51 +01:00