mofron-comp-background
v0.0.9
Published
background component for mofron
Readme
mofron-comp-background
Background component for mofron
Install
npm install --save-dev mofronQuick Start
require webpack
<html>
<head></head>
<body style="margin:0px;padding:0px;"></body>
<script src='./path/to/webpack/output.js'></script>
</html>example
require('mofron');
require('mofron-comp-background');
require('mofron-layout-hrzcenter');
/* set background */
var base = new mofron.comp.Background();
base.color(new mofron.util.Color(240,240,240));
base.addLayout(new mofron.layout.HrzCenter());
/* set contents */
var conts = new mofron.comp.Background();
conts.shadow(20);
conts.color(new mofron.util.Color(250,250,250));
base.addChild(conts);
base.init();#class specification
| Method | Parameter | Description | |:------------------|:-----------------------------------------------------------------|:-------------------------------| | color | mofron.util.Color : color (option) |button color getter/setter(for getter, do not specify parameters) | | shadow | number : shadow length | set shadow style to side(for getter, do not specify parameters) |
