source: Dev/trunk/src/client/dojox/mobile/tests/test_IconContainer.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 2.9 KB
Line 
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>Icon Container (Multi - Below)</title>
8
9        <script type="text/javascript" src="../deviceTheme.js"></script>
10        <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script>
11
12        <script type="text/javascript">
13                require([
14                        "dojox/mobile/parser",
15                        "dojox/mobile",
16                        "dojox/mobile/compat",
17                        "dojox/mobile/IconContainer"
18                ]);
19        </script>
20
21        <style>
22                .box {
23                        border: 1px solid #A7C0E0;
24                        width: 300px;
25                        height: 250px;
26                        background-image: url(images/widget-bg.png);
27                        background-repeat: no-repeat;
28                        background-color: white;
29                }
30        </style>
31</head>
32<body style="visibility:hidden;">
33        <div id="view1" data-dojo-type="dojox.mobile.View">
34                <h1 data-dojo-type="dojox.mobile.Heading">Icon Container (Multi - Below)</h1>
35                <ul data-dojo-type="dojox.mobile.IconContainer">
36                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"app1", icon:"images/icon-1.png", lazy:true'><div class="box"></div></li>
37                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"app2", icon:"images/icon-1.png", lazy:true'><div class="box"></div></li>
38                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"app3", icon:"images/icon-1.png", lazy:true'><div class="box"></div></li>
39                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"moveTo", icon:"images/icon-1.png", moveTo:"about", transition:"slide"'></li>
40                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"href", icon:"images/icon-1.png", href:"test_RoundRectList.html", transition:"slide"'></li>
41                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"hrefTarget", icon:"images/icon-1.png", href:"test_RoundRectList.html", hrefTarget:"_self", transition:"swirl"'></li>
42                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"url", icon:"images/icon-1.png", url:"data/view-sample.html", transition:"slide"'></li>
43                        <li data-dojo-type="dojox.mobile.IconItem" data-dojo-props='label:"url-async", icon:"images/icon-1.png", url:"data/view-sample.html", transition:"slide", sync:false'></li>
44                </ul>
45        </div>
46
47        <div id="about" data-dojo-type="dojox.mobile.View">
48                <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Icon Container", moveTo:"view1"'>About</h1>
49                <h2 data-dojo-type="dojox.mobile.RoundRectCategory">My Phone</h2>
50                <ul data-dojo-type="dojox.mobile.RoundRectList">
51                        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"AcmePhone"'>
52                                Network
53                        </li>
54                        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"AcmePhone"'>
55                                Line
56                        </li>
57                        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"1024"'>
58                                Songs
59                        </li>
60                </ul>
61        </div>
62</body>
63</html>
Note: See TracBrowser for help on using the repository browser.