mofron-comp-appbase
Advanced tools
Comparing version 0.6.3 to 0.6.4
19
index.js
@@ -12,2 +12,3 @@ /** | ||
const cmputl = mofron.util.component; | ||
const ConfArg = mofron.class.ConfArg; | ||
@@ -70,3 +71,3 @@ module.exports = class extends mofron.class.Component { | ||
*/ | ||
title (prm, img) { | ||
title (prm, img, href) { | ||
try { | ||
@@ -78,2 +79,3 @@ let ret = this.header().title(prm); | ||
this.header().image(img); | ||
this.header().url(href); | ||
} catch (e) { | ||
@@ -189,3 +191,18 @@ console.error(e.stack); | ||
} | ||
baseColor (prm,opt) { | ||
try { | ||
if (undefined !== prm) { | ||
this.background( | ||
new mofron.class.Component({ | ||
baseColor: new ConfArg(prm,opt) | ||
}) | ||
); | ||
} | ||
} catch (e) { | ||
console.error(e.stack); | ||
throw e; | ||
} | ||
} | ||
} | ||
/* end of file */ |
{ | ||
"name": "mofron-comp-appbase", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "application base component for mofron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8430
191