We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57996d commit c25bfd7Copy full SHA for c25bfd7
ui/javascript/app/Horizon.js
@@ -383,12 +383,27 @@ javaxt.express.app.Horizon = function(parent, config) {
383
panel.show();
384
}
385
else{
386
- var cls = eval(className);
387
- panel = new cls(body, {
+
388
+ //Create custom config for the panel
389
+ var cfg = {
390
style: config.style.javaxt,
391
fx: config.fx,
392
waitmask: config.waitmask
- });
393
+ };
394
395
+ //Update config with non-standard config options
396
+ for (var key in config) {
397
+ if (config.hasOwnProperty(key)){
398
+ if (defaultConfig[key]) continue;
399
+ cfg[key] = config[key];
400
+ }
401
402
403
404
+ //Instantiate panel
405
+ var cls = eval(className);
406
+ panel = new cls(body, cfg);
407
panels[label] = panel;
408
409
};
0 commit comments