initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
19
magnus/pages/test.js
Normal file
19
magnus/pages/test.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
|
||||
var Page = require("../lib/wModel/page");
|
||||
var String = require("../lib/wModel/string");
|
||||
|
||||
var Address = require("../lib/wType/address");
|
||||
|
||||
var TestPage = Page.inherit({
|
||||
"className": "TestPage",
|
||||
"constructor": function(address, name) {
|
||||
Page.fn.constructor.call(this, address, name);
|
||||
|
||||
var header = new String(this._address["+"](new Address(["message"])), "This is a test page");
|
||||
header.addProperty("fontFamily", "casualFont");
|
||||
this.addItem(header, 0, 0, 1, 1, Page.Aligment.CenterTop);
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = TestPage;
|
Loading…
Add table
Add a link
Reference in a new issue