Debian Codegraph @

dojox/mobile/tests/test_SwapView-show.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta 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>Test Dojo</title>
8 <link rel="stylesheet" href="../../../dojox/mobile/themes/iphone/iphone.css"/>
9 <link rel="stylesheet" href="../../../dojox/mobile/themes/iphone/iphone-compat.css"/>
10 <script src="../../../dojo/dojo.js" data-dojo-config="async:true, parseOnLoad:true, locale:'en', isDebug:true"></script>
11 <script>
12 require([
13 "dojo/parser",
14 "dojo/ready",
15 // non referenced includes
16 "dojox/mobile",
17 "dojox/mobile/compat",
18 "dojox/mobile/SwapView",
19 "dojox/mobile/PageIndicator"
20 ], function (parser, ready) {
21
22 ready(function () {
23 Button1.on('click', function(){
24 Pane1.show();
25 PageIndicator.reset();
26 });
27
28 Button2.on('click', function(){
29 var activeView = Pane1.getShowingView();
30 activeView.goTo(-1, 'Pane1');
31 });
32 });
33 });
34 </script>
35 <style>
36 .mblView {
37 border-top: 1px solid transparent;
38 border-bottom: 10px solid red;
39 }
40 </style>
41 </head>
42 <body style="visibility:hidden;">
43 <h1 data-dojo-type="dojox/mobile/Heading" data-dojo-props="label:'Test SwapView'">
44 <span data-dojo-id="Button1" data-dojo-type="dojox/mobile/ToolBarButton">Go to Pane1</span>
45 <span data-dojo-id="Button2" data-dojo-type="dojox/mobile/ToolBarButton">Slide to Pane1</span>
46 </h1>
47
48 <div data-dojo-type="dojox/mobile/PageIndicator" data-dojo-id="PageIndicator">
49 </div>
50
51 <div data-dojo-type="dojox/mobile/SwapView" data-dojo-id="Pane1" id="Pane1">
52 <div data-dojo-type="dojox/mobile/RoundRect" data-dojo-props='shadow:true'>
53 Swipe me to the left until Pane 3 is displayed, then click the Go to Pane1 button and check that everything is ok (including the page indicator value). Then do the same using the Slide to Pane1 button.
54 </div>
55 </div>
56
57 <div data-dojo-type="dojox/mobile/SwapView" data-dojo-id="Pane2">
58 <div data-dojo-type="dojox/mobile/RoundRect" data-dojo-props='shadow:true'>
59 Pane 2
60 </div>
61 </div>
62
63 <div data-dojo-type="dojox/mobile/SwapView" data-dojo-id="Pane3">
64 <div data-dojo-type="dojox/mobile/RoundRect" data-dojo-props='shadow:true'>
65 Pane 3
66 </div>
67 </div>
68
69 </body>
70 </html>