0.0.9 • Published 7 years ago

mofron-comp-background v0.0.9

Weekly downloads
26
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

mofron-comp-background

Background component for mofron

Install

npm install --save-dev mofron

Quick 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

MethodParameterDescription
colormofron.util.Color : color (option)button color getter/setter(for getter, do not specify parameters)
shadownumber : shadow lengthset shadow style to side(for getter, do not specify parameters)
0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago