Debian Codegraph @

dojox/mobile/tests/doh/roundrectstorelist/RoundRectStoreList_Programmatic.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
5 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
6 <meta name="apple-mobile-web-app-capable" content="yes"/>
7 <title>RoundRectStoreList</title>
8
9 <script type="text/javascript" src="../../../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base']"></script>
10 <script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script>
11 <script language="JavaScript" type="text/javascript">
12 require([
13 "dojo/ready", // dojo.ready
14 "dijit/registry", // dijit.byId
15 "dojox/mobile/tests/doh/CustomListItem",
16 "dojox/mobile/RoundRectStoreList",
17 "dojox/mobile", // This is a mobile app.
18 "dojox/mobile/View", // This mobile app uses mobile view
19 "dojox/mobile/compat", // This mobile app supports running on desktop browsers
20 "dojox/mobile/parser" // This mobile app uses declarative programming with fast mobile parser
21 ], function(ready, registry, CustomListItem, RoundRectStoreList){
22 ready(function(){
23 var view = registry.byId("foo");
24 var demoWidget = new RoundRectStoreList({id:"list", store:store, query:{}, itemRenderer: CustomListItem});
25 demoWidget.placeAt(view.containerNode);
26 demoWidget.startup();
27 });
28 });
29 </script>
30 <script type="text/javascript">
31 var IsEdgeToEdgeList = false;
32 </script>
33 <script type="text/javascript" src="StoreList.js"></script>
34 </head>
35 <body style="visibility:hidden;">
36 <div id="foo" data-dojo-type="dojox.mobile.View">
37 <p>show the different set:<br>
38 <input type="button" value="Set1" onclick="switchTo(store1)">
39 <input type="button" value="Set2" onclick="switchTo(store2)">
40 <p>alter the object store:<br>
41 <input type="button" value="Add" onclick="add1()">
42 <input type="button" value="Delete" onclick="delete1()">
43 <h1 data-dojo-type="dojox.mobile.Heading">RoundRectStoreList</h1>
44 </div>
45 </body>
46 </html>