dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
59 lines (55 loc) • 2.01 kB
HTML
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<title>GridLayout</title>
<script type="text/javascript" src="../../deviceTheme.js"
data-dojo-config="'dojo-bidi': true, mblThemeFiles: ['base','Button','GridLayout']"></script>
<script type="text/javascript" src="../../../../dojo/dojo.js"
data-dojo-config="async: true, parseOnLoad: true,has: {'dojo-bidi': true}"></script>
<script type="text/javascript">
require([
"dojo/parser",
"dojox/mobile",
"dojox/mobile/compat",
"dojox/mobile/ScrollableView",
"dojox/mobile/GridLayout",
"dojox/mobile/Pane",
"dojox/mobile/Button"
]);
</script>
<style>
.mblButton {
width: 100%;
height: 100%;
}
</style>
</head>
<body style="visibility:hidden;">
<div id="view1" data-dojo-type="dojox.mobile.ScrollableView">
<div dir="rtl" data-dojo-type="dojox.mobile.GridLayout" data-dojo-props='cols:3' style="height: 200px;">
<div data-dojo-type="dojox.mobile.Pane">
<button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 1</button>
</div>
<div data-dojo-type="dojox.mobile.Pane">
<button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 2</button>
</div>
<div data-dojo-type="dojox.mobile.Pane">
<button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 3</button>
</div>
<div data-dojo-type="dojox.mobile.Pane">
<button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 4</button>
</div>
<div data-dojo-type="dojox.mobile.Pane">
<button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 5</button>
</div>
<div data-dojo-type="dojox.mobile.Pane">
<button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 6</button>
</div>
</div>
</div>
</body>
</html>