Go to file
Thomas Lamprecht a46c2eb11f form: add Proxmox.form.field.DisplayEdit
This allows to write our often used:

> {
>     xtype: me.isCreate ? 'someEditableField' : 'displayfield',
>     ...
> }

In a more schematic way, as it can now be controlled by either our
CBind mixin or ExtJS native data binding.

Use a Field container to add both, they editable and they display,
variants of a form field. As default use "textfield" for the editable
and "displayfield" xtype for the read only one.

Pass all but the editConfig and editable members of our initial
config to the display field, allow further to configure the editable
field with an editConfig object, which overwrites the config
properties inherited from the displayConfig/parent config.

This gives full control while not enforcing to specify anything extra
for most default cases.

Enforce initial state of the fields even if the databinding would
handle it to avoid glitches after first render for simple boolean expression
cases.

> {
>     xtype: 'pmxDisplayEditField',
>     cbind: {
>         editable: '{isCreate}',
>     },
>     name: 'tokenid',
>     fieldLabel: gettext('Token ID'),
>     value: me.tokenid,
>     allowBlank: false,
> }

Here, cbind could also be a bind or a native boolean expression.

For something else than a texfield one would use the editConfig, e.g.:
> {
>     ....
>     editConfig: {
>         xtype: 'pveUserSelector',
>         allowBlank: false,
>     },
> },

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-16 15:33:18 +02:00
button Ext.Msg: switch from depreacated msg to message property 2019-11-26 12:58:50 +01:00
css add pmx-hint css class 2019-10-09 09:10:33 +02:00
data update store: move store parameter into config, use getter/setter 2020-04-03 08:53:21 +02:00
debian bump version to 2.1-3 2020-01-30 17:50:25 +01:00
form form: add Proxmox.form.field.DisplayEdit 2020-04-16 15:33:18 +02:00
grid object grid: allow to pass online help to row editors 2020-03-31 18:13:20 +02:00
images ComboGrid: add trigger to delete from ComboGrid 2019-08-13 15:37:26 +02:00
mixin cbind: allow to pass "formula" function in binding 2020-01-30 15:52:06 +01:00
node net/node: add some "hint" for VLAN add window 2020-01-30 17:36:47 +01:00
panel indentation cleanup 2020-01-30 17:50:25 +01:00
window indentation cleanup 2020-01-30 17:50:25 +01:00
defines.mk add css and image directory to packaging 2019-08-13 15:37:26 +02:00
Makefile form: add Proxmox.form.field.DisplayEdit 2020-04-16 15:33:18 +02:00
Toolkit.js open picker for all comboboxes on focus, even if they are editable 2020-04-16 14:39:38 +02:00
Utils.js utils: add 'auth-realm-sync' task description 2020-04-03 09:33:52 +02:00