mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-28 17:14:56 +00:00
cbind: allow methods in cbindData
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8ae40b73f1
commit
91e77fa904
@ -21,7 +21,12 @@ Ext.define('Proxmox.Mixin.CBind', {
|
||||
return me.initialConfig[cname];
|
||||
}
|
||||
if (cname in me.cbindData) {
|
||||
return me.cbindData[cname];
|
||||
let res = me.cbindData[cname];
|
||||
if (typeof(res) == "function") {
|
||||
return res(me.initialConfig);
|
||||
} else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
if (cname in me) {
|
||||
return me[cname];
|
||||
|
Loading…
Reference in New Issue
Block a user