Commit Graph

8 Commits

Author SHA1 Message Date
Thomas Lamprecht
1d5e523aa0 mixin cbind: avoid undefined cbindData access
Else we can fail at the first fallback check in getConfigValue while
we still have the possibility to have the cbinded key available in
"me" (initial config).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-23 13:43:29 +01:00
Thomas Lamprecht
f27b0f68e3 cbind: handle properties with undefined value in cloneTemplateObject
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-23 13:43:29 +01:00
Aaron Lauterer
13fc756dfd tree-wide trailing whitespace cleanup
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-30 08:00:34 +02:00
Dominik Csapak
c33f087874 skip config property for cbind mixin
if we use a component with cbind in a static declaration,
we do not want to traverse the 'config' property, as this can lead
to properties of base classes which produce errors on copying

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-22 10:14:58 +01:00
Thomas Lamprecht
c6f1ab1bd7 mixin/CBind: allow binding sub elements
allow to access sub elements of configuration items for binding.

E.g., if the following configuration is present:

foo: {
    bar: true
}

one could do:

xtype: 'displayfield',
cbind {
    value: '{foo.bar}'
}
[...]

This mirrors the abillity of ExtJS's 'bind', which can do this also.
Simple implementation mirroring the surrounding code.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-09 10:13:34 +01:00
Dietmar Maurer
7d9225e651 CBind.js: fix cloneTemplateArray 2017-03-31 12:35:39 +02:00
Dietmar Maurer
fbdf4ca751 CBind.js: ignore case in regex 2017-03-31 12:26:33 +02:00
Dietmar Maurer
281ad45b5d add experimental CBind mixin 2017-03-31 11:26:55 +02:00