-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathui-left-title.htm
94 lines (69 loc) · 3.01 KB
/
ui-left-title.htm
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>UI Left Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="basic/basic.min.css">
<script src="basic/basic.min.js" type="text/javascript" charset="utf-8"></script>
<script src="components/ui-left-title.js" type="text/javascript" charset="utf-8"></script>
<script>
var uiLeftTitleItem1
var start = function() {
page.color = "whitesmoke";
// *** EXAMPLE 1:
// UI LEFT TITLE: Default values.
UILeftTitle.resetDefault();
UILeftTitle.default.width = 400;
//UILeftTitle.default.height = 90;
//UILeftTitle.default.titleFontSize = 24;
//UILeftTitle.default.titleTextColor = "rgba(0, 0, 0, 0.8)";
UILeftTitle.default.descriptionFontSize = 16;
//UILeftTitle.default.descriptionTextColor = "rgba(0, 0, 0, 0.5)";
UILeftTitle.default.textSpaceToCenter = 12;
UILeftTitle.default.leftInnerSpace = 30;
UILeftTitle.default.rightInnerSpace = 20;
UILeftTitle.default.border = 1;
//UILeftTitle.default.borderColor = "rgba(0, 0, 0, 0.2)";
UILeftTitle.default.bottomBorder = 4;
UILeftTitle.default.backgroundColor = "whitesmoke";
UILeftTitle.default.round = 13;
// UI LEFT TITLE ITEM: Object description.
uiLeftTitleItem1 = UILeftTitle.create({
title: "Languages",
description: "Select a language for system."
});
that.center();
var uiComponent = createImage(0, 0, 36, 36);
that.load("components/ui-left-title/arrow.svg");
that.opacity = 0.8;
uiLeftTitleItem1.addObject(uiComponent);
//uiComponent.right = 20;
//uiComponent.color = "lightgray";
//uiComponent.round = 8;
//uiComponent.remove();
uiLeftTitleItem1.onClick(function(self) {
console.log("uiLeftTitleItem1 clicked.");
});
// *** EXAMPLE 2:
// UI LEFT TITLE: Default values.
UILeftTitle.resetDefault();
// UI LEFT TITLE ITEM: Object description.
page.uiLeftTitleItem2 = UILeftTitle.create({
title: "Languages",
description: "Select a language for system."
});
// Show at:
that.left = 0;
that.bottom = 0;
page.onResize(pageResized);
}
var pageResized = function() {
uiLeftTitleItem1.center();
}
</script>
</head>
<body>
<!-- HTML content -->
</body>
</html>