]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
mixin/CBind: allow binding sub elements
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Feb 2018 07:28:34 +0000 (08:28 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 9 Feb 2018 09:13:34 +0000 (10:13 +0100)
commitc6f1ab1bd78f650cd3368af3f9c771c919b31e2e
treec234760b48827480c197d4a183c99a9b3d7e854d
parentf3cf5c9bd8df284155e7de39d088a3897317513d
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>
mixin/CBind.js