-
Notifications
You must be signed in to change notification settings - Fork 0
/
testTemplate.html
55 lines (47 loc) · 1.5 KB
/
testTemplate.html
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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo: Using _TemplatedMixin</title>
<link rel="stylesheet" href="http://localhost/arcgis_js_api/library/3.14/3.14/esri/css/esri.css">
<link rel="stylesheet" href="http://localhost/arcgis_js_api/library/3.14/3.14/dijit/themes/claro/claro.css">
</head>
<body class="claro">
<h1>Demo: Using _TemplatedMixin</h1>
<div data-dojo-type="demo/SomeWidget" data-dojo-props="title:'Our Some Widget'">
<!-- <div>Don't forget to click on the title!</div>
<p>This is arbitrary content!</p>
<button data-dojo-type="dijit/form/Button">My Button</button>
<p>More arbitrary content!</p>
-->
</div>
<script>
// See the using Custom Modules with a CDN Tutorial for more
// information on configuring Dojo for CDN usage
var dojoConfig = {
async: true,
// dojoBlankHtmlUrl: location.pathname.replace(/\/[^/]+$/, "") + "/",
packages: [{
name: "demo",
location: "/test"
}]
};
</script>
<script src="http://localhost/arcgis_js_api/library/3.14/3.14/init.js" data-dojo-config="isDebug: 1, async: 1, parseOnLoad: 1"></script>
<script>
require([
"dojo/parser",
"demo/SomeWidget",
"dijit/form/Button", "dojo/domReady!"
], function(parser,SomeWidget) {
// parser.parse();
// var tWidget=new SomeWidget();
// tWidget.testFunc();
// Invoke the dojo/parser
});
</script>
<script>
</script>
</body>
</div>
</html>