-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (123 loc) · 3.48 KB
/
index.html
File metadata and controls
143 lines (123 loc) · 3.48 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Titanium App Builder</title>
<link rel="stylesheet" href="css/smoothness/jquery-ui-1.8.5.custom.css?v=1">
<link rel="stylesheet" href="css/style.css?v=1">
</head>
<body>
<div id="container" class="clearfix">
<header class="clearfix">
<hgroup>
<h1>The App Builder</h1>
<h2>A GUI app builder for Appcelerator's Titanium</h2>
</hgroup>
<button id="resetApp">Reset App</button>
</header>
<section id="wrapper" class="clearfix">
<aside id="sidebar" class="clearfix">
<ul>
<li><a id="tableView" href="#">Table View</a></li>
<li><a id="label" href="#">Label</a></li>
<li><a id="textfield" href="#">TextField</a></li>
</ul>
</aside>
<div id="appCanvas" class="clearfix">
<div id="appNavBar">
<h1>App Title</h1>
</div>
<ul id="appItems"></ul>
</div><!-- #appCanvas -->
<div id="codeWindow" class="clearfix">
<pre>
<ul id="codeItems"></ul>
</pre>
</div>
</section>
<footer class="clearfix">
Built by Rick Blalock
</footer>
</div>
<script id="tableViewCode" type="text/x-jquery-tmpl">
<li class="item">
var rows = [<br />
{ title: 'Row 1' },<br />
{ title: 'Row 2' },<br />
{ title: 'Row 3' }<br />
];<br />
<br />
Titanium.UI.createTableView({<br />
<span>data: rows,</span><br />
layout: '${layout}',<br />
<div class="newProps"></div>
});
</li>
</script>
<script id="labelCode" type="text/x-jquery-tmpl">
<li class="item">
Titanium.UI.createLabel({<br />
text: '${text}',<br />
<div class="newProps"></div>
});
</li>
</script>
<script id="textfieldCode" type="text/x-jquery-tmpl">
<li class="item">
Titanium.UI.createTextField({<br />
value: '${value}',<br />
<div class="newProps"></div>
});
</li>
</script>
<script id="uiElem" type="text/x-jquery-tmpl">
<li class="item">
<div class="elemInfo">
<h5><a href="${apiLink}">${type}</a></h5>
</div>
<div class="elemContainer">
{{html markup}}
</div>
</li>
</script>
<script id="tableTmpl" type="text/x-jquery-tmpl">
<div class="elemConfig">
<h5>Options</h5>
<label>hasDetail</label>
<input class="hasDetail" value="true" name="hasDetail" type="checkbox" />
<br />
<label>BG Color</label>
<input class="backgroundColor" value="'#333'" name="backgroundColor" type="checkbox" />
</div>
<ul>
<li>Row 1</li>
<li>Row 2</li>
<li>Row 3</li>
</ul>
</script>
<script id="labelTmpl" type="text/x-jquery-tmpl">
<div class="elemConfig">
<h5>Options</h5>
<label>hasDetail</label>
<input class="hasDetail" value="true" name="hasDetail" type="checkbox" />
<br />
<label>BG Color</label>
<input class="backgroundColor" value="'#333'" name="backgroundColor" type="checkbox" />
</div>
<p>Label Text Here</p>
</script>
<script id="textfieldTmpl" type="text/x-jquery-tmpl">
<div class="elemConfig">
</div>
<input type="text" value="Text Value Here" />
</script>
<!-- Include the jQuery library -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="lib/src/jquery-1.4.2.min.js"><\/script>');</script>
<script src="lib/src/jquery-ui-1.8.5.custom.min.js"></script>
<script src="lib/src/jquery.tmpl.min.js"></script>
<script src="lib/helper.js"></script>
<script src="lib/elems.js"></script>
<script src="lib/app.js"></script>
</body>
</html>