mofron-comp-appbase
Advanced tools
Comparing version 0.2.0 to 0.2.1
13
index.js
@@ -165,5 +165,5 @@ /** | ||
color (clr) { | ||
color (clr, c2) { | ||
try { | ||
if (undefined === clr) { | ||
if ((undefined === clr) && (undefined === c2)) { | ||
/* getter */ | ||
@@ -174,3 +174,10 @@ return this.header().color(); | ||
/* set header color */ | ||
this.header().color(clr); | ||
if (undefined !== clr) { | ||
this.header().color(clr); | ||
} | ||
if (undefined !== c2) { | ||
let bg = this.getChild(true)[1]; | ||
bg.width('100%'); | ||
bg.color(c2); | ||
} | ||
} catch (e) { | ||
@@ -177,0 +184,0 @@ console.error(e.stack); |
{ | ||
"name": "mofron-comp-appbase", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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
8023
174