Commit Graph

16 Commits

Author SHA1 Message Date
Dominik Csapak
39d9914990 ComboGrid: open picker also when focusing an editable field
port commit
851c032d69ad5ae23725dd1add9e4084ebc12650
from pve-manager

commit message:

    ComboBoxes provided by UI frameworks normally show their selection
    possibilities once focused, ExtJS does this too but not on editable
    (and thus filterable) input fields. Add a logic which allows this too
    and streamlines the behavior of ComboGrid/Box like components.

    To avoid a glitch, where clicking the "picker trigger" (the down
    arrow which normally toggles the selection picker) would first focus
    the element - thus expanding it - and only then causing a toggle
    which collapses it again, we overwrite the 'Ext.form.trigger.Trigger'
    onMouseDown so that we can skip a expansion on this event.

    Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 14:48:13 +01:00
Dominik Csapak
3ab80554c6 ComboGrid: improve setting 'editable' default value
port commit
bff876ecb5f3388b7d65c491680b9a40574e4744
from pve-manager

commit message:

    This allows child classes to use another default, the initialConfig
    didn't allowed that.
    This is also the ExtJS like way to set defaults.

    Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-11 14:48:13 +01:00
Dominik Csapak
fa6dc53bcc add missing BondModeSelector to widget toolkit
this is needed for the node/NetworkEdit.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-14 11:35:48 +01:00
Dietmar Maurer
f6f0066aff LanguageSelector.js - add language selector 2017-10-04 11:16:22 +02:00
Dietmar Maurer
00ecc6db47 DateTimeField.js - relay change events 2017-09-21 09:36:36 +02:00
Dietmar Maurer
2e7bd1dcba form/DateTimeField.js - new widget to select Date with Time 2017-09-20 12:42:42 +02:00
Dietmar Maurer
a0ba293c12 add RRDTypeSelector class
Mostly copied from pve-manager.

- added gettext translations
- changed class and state name
2017-08-29 06:25:25 +02:00
Dietmar Maurer
f0372135cd try to use real config properties
to generate getter/setter functions (required for bind)
2017-03-29 18:47:19 +02:00
Dietmar Maurer
a4eeb5939d KVComboBox.js: use correct namespace 2017-03-27 13:02:18 +02:00
Dietmar Maurer
066babdc65 form/ComboGrid.js: imported from pve-manager 2017-03-27 11:04:46 +02:00
Dietmar Maurer
211267b8cc KVComboBox: imported from pve-manager 2017-02-25 10:20:12 +01:00
Dietmar Maurer
b2d1d61fec rename pveintegerfield to proxmoxintegerfield 2017-02-24 09:15:20 +01:00
Dietmar Maurer
2cebd14b9d rename integerfield to pveintegerfiled, implement deleteEmpty 2017-02-24 08:59:06 +01:00
Dietmar Maurer
d44fdf59f9 add integer field 2017-02-24 08:32:30 +01:00
Dietmar Maurer
fccec7c6c2 add Checkbox.js
Copied from pve-manager
2017-01-31 17:17:12 +01:00
Dietmar Maurer
a0ec162067 add TextField.js
Copied from pve-manager
2017-01-31 17:13:26 +01:00