mofron-comp-appbase
Advanced tools
Comparing version 0.4.8 to 0.4.9
32
index.js
@@ -46,3 +46,2 @@ /** | ||
this.addChild(this.header()); | ||
/* background area */ | ||
@@ -52,6 +51,5 @@ this.addChild(this.bgwrap()); | ||
/* contents */ | ||
let conts = new mf.Component({ width : '100%'}); | ||
let conts = new mf.Component({ width : '100%' }); | ||
this.addChild(conts); | ||
this.target(conts.target()); | ||
} catch (e) { | ||
@@ -70,4 +68,10 @@ console.error(e.stack); | ||
*/ | ||
title (prm) { | ||
try { return this.header().title(prm); } catch (e) { | ||
title (prm, lg) { | ||
try { | ||
let ret = this.header().title(prm); | ||
if (undefined !== lg) { | ||
this.header().logo(lg); | ||
} | ||
return ret; | ||
} catch (e) { | ||
console.error(e.stack); | ||
@@ -99,3 +103,3 @@ throw e; | ||
if (true === mf.func.isInclude(prm, 'Component')) { | ||
prm.execOption({ | ||
prm.option({ | ||
style : { | ||
@@ -139,6 +143,3 @@ 'position' : 'relative', | ||
prm.option({ | ||
effect : [ | ||
new Backgd(), | ||
new Synwin([false, true], [0, hrd_ofs]) | ||
] | ||
effect : [ new Backgd(), new Synwin([false, true], [0, hrd_ofs]) ] | ||
}); | ||
@@ -193,12 +194,7 @@ } catch (e) { | ||
try { | ||
let bg = this.background(); | ||
let cnt = this.getChild(true)[2]; | ||
if (undefined === prm) { | ||
/* getter */ | ||
return (null !== bg) ? bg.baseColor() : null; | ||
cnt.style('background'); | ||
} | ||
/* setter */ | ||
if (null === bg) { | ||
this.background(new mf.Component()); | ||
} | ||
this.background().option({ baseColor : prm }); | ||
mf.func.setColor(cnt, 'background', prm); | ||
} catch (e) { | ||
@@ -205,0 +201,0 @@ console.error(e.stack); |
{ | ||
"name": "mofron-comp-appbase", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "application base component for mofron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8417
190