Root.getLayout () |
return the root layout
if no layout is activated, check if the default
layout is existing, otherwise return a transient
layout object
|
Sourcecode in Root/objectFunctions.js:
1: function getLayout() { 2: if (!this.sys_layout) { 3: // no layout defined, so try to get default 4: // layout. if that doesn't exist either 5: // return a newly created layout object 6: var defLayout = root.layouts.get("default"); 7: if (!defLayout) 8: return new Layout(); 9: return defLayout; 10: } 11: return root.sys_layout; 12: } |