mofron
mofron is JavaScript Framework for Web UI.
It encapsulations the elements of the front-end (html, css, etc. ..) and provides APIs like Swing and .NET.
If you have developed a GUI with Swing or .NET, you can do web development smoothly.
Install
npm install --save-dev mofron
Quick Start
you need webpack
<html>
<head></head>
<body style="margin:0px;padding:0px;"></body>
<script src='./path/to/webpack/output.js'></script>
</html>
example (button display)
require('mofron');
require('mofron-comp-button');
new mofron.comp.Button('test').visible(true);
var btn = new mofron.comp.Button('size');
btn.width(150);
btn.visible(true);
btn.height(30);
btn.style('background', 'white');
var click = new mofron.comp.Button('click');
click.setClickEvent(function() {
alert('click');
});
click.visible(true);
more