-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.js
30 lines (29 loc) · 1.08 KB
/
default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Default layout page
//
exports.View =
{
title: "Default Layout",
elements:
[
{ control: "stackpanel", orientation: "Horizontal", contents: [
{ control: "rectangle", color: "Green", height: "50", width: "10" },
{ control: "rectangle", color: "Green", height: "50", width: "100" },
{ control: "rectangle", color: "Green", height: "50", width: "10" },
] },
{ control: "stackpanel", orientation: "Horizontal", contents: [
{ control: "rectangle", color: "Green", height: "*", width: "10" },
{ control: "text", value: "Name:", fontsize: 12, verticalAlignment: "Center", textAlignment: "Right" },
{ control: "edit", fontsize: 12, width: 200, verticalAlignment: "Center", binding: "name" },
{ control: "rectangle", color: "Green", height: "*", width: "10" },
] },
{ control: "rectangle", color: "Green", height: "10", width: "*" },
]
}
exports.InitializeViewModel = function(context, session)
{
var viewModel =
{
name: "Name"
}
return viewModel;
}