Thomas Lamprecht
05a977a227
make eslint 100% happy
...
lots of churn and changes but will allow to enforce linting again in
the build system.
Also switch over from var to let.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 17:16:22 +02:00
Thomas Lamprecht
4f1b9b8c3b
some more eslint fixes
...
manually adapted after eslint --fix call due to our damn weird
indentation scheme
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 15:05:50 +02:00
Thomas Lamprecht
01031528ad
eslint fixes all over the place
...
all autofixed by eslint with a slightly reduced base config rule set
to avoid rules which may give some undesired results in our code
base.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 15:02:29 +02:00
Thomas Lamprecht
7d16f8b34c
object grid: allow to pass online help to row editors
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-03-31 18:13:20 +02:00
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