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.
280 lines (257 loc) • 16.6 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>Bidi Mobile test - Accordion</title>
<script type="text/javascript" src="../../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','Accordion']"></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([
"dijit/_base/manager",
"dojox/mobile/parser",
"dojox/mobile",
"dojox/mobile/compat",
"dojox/mobile/Accordion",
"dojox/mobile/ContentPane",
"dojox/mobile/ScrollableView"
]);
</script>
<style>
html,body {
height: 100%;
overflow: hidden;
}
hr {
border: none;
margin: 0;
}
button {
width: 180px;
margin: 15px 10px 0;
}
button.customButton {
border-color: #cc3333;
background-image: url('../images/red-button-bg.png');
background-image: -webkit-gradient(linear, left top, left bottom, from(#D3656D), to(#BC1320), color-stop(0.5, #C9404B), color-stop(0.5, #BC1421));
color: #ffffff;
}
</style>
</head>
<body style="visibility:hidden;">
<div id="group1" data-dojo-type="dojox.mobile.View" data-dojo-props='keepScrollPos:false'><!-- keepScrollPos=false is to improve performance -->
<!--- <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:{"iphone_theme":"segmentedControl","*":"tallTab"}, fixed:"top"'>
<li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true, moveTo:"view1"'> LTR</li>
<li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='moveTo:"view2"'> RTL</li>
</ul>--->
<div id="view0" data-dojo-type="dojox.mobile.ScrollableView">
<h2 data-dojo-type="dojox.mobile.Heading">Accordion widget</h2>
<h1 data-dojo-type="dojox.mobile.Heading">dir LTR</h1>
<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" >
<li id="l1" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/LTR.png", moveTo:"view1"'>Tex Dir LTR</li>
<li id="l2" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/RTL.png", moveTo:"view2"'>Tex Dir RTL</li>
<li id="l3" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/auto.png", moveTo:"view3"'>Tex Dir AUTO</li>
</ul>
<h1 data-dojo-type="dojox.mobile.Heading">dir RTL</h1>
<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" >
<li id="l4" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/LTR.png", moveTo:"view4"'>Tex Dir LTR</li>
<li id="l5" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/RTL.png", moveTo:"view5"'>Tex Dir RTL</li>
<li id="l6" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/auto.png", moveTo:"view6"'>Tex Dir AUTO</li>
</ul>
</div>
<div id="view1" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir LTR | textDir LTR</h1>
<div data-dojo-type="dojox.mobile.Accordion" id="1" data-dojo-props='textDir: "ltr",singleOpen:true, roundRect:true' style="height:200px;">
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello World!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../data/fragment1.html"'>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום עולם!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='iconBase:"../images/tab-icon-11h.png"'>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u1space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u2space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
Wi-Fi!
</li>
</ul>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello עולם!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane">
<div style="padding:10px">
<div style="font-size: 24px">Unbeatable JavaScript Tools</div>
<div style="border-top: 1px dashed gray;margin: 20px"></div>
<img alt="" src="../images/dojo-logo1.png" style="float:left;margin-right:5px">
<p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p>
<p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p>
</div>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום World!"'>
</div>
</div>
</div>
</div>
<div id="view2" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir LTR | textDir RTL</h1>
<div data-dojo-type="dojox.mobile.Accordion" data-dojo-props='textDir: "rtl",singleOpen:true, roundRect:true' style="height:400px;">
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello World!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../data/fragment1.html"'>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום עולם!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='iconBase:"../images/tab-icon-11h.png"'>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u1space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u2space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
Wi-Fi!
</li>
</ul>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello עולם!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane">
<div style="padding:10px">
<div style="font-size: 24px">Unbeatable JavaScript Tools</div>
<div style="border-top: 1px dashed gray;margin: 20px"></div>
<img alt="" src="../images/dojo-logo1.png" style="float:left;margin-right:5px">
<p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p>
<p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p>
</div>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום World!"'>
</div>
</div>
</div>
</div>
<div id="view3" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir LTR | textDir AUTO</h1>
<div data-dojo-type="dojox.mobile.Accordion" data-dojo-props='textDir: "auto",singleOpen:true, roundRect:true' style="height:400px;">
<div data-dojo-type="dojox.mobile.ContentPane" id="cp" data-dojo-props='label:"Hello World!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../data/fragment1.html"'>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום עולם!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='iconBase:"../images/tab-icon-11h.png"'>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u1space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u2space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
Wi-Fi!
</li>
</ul>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello עולם!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane">
<div style="padding:10px">
<div style="font-size: 24px">Unbeatable JavaScript Tools</div>
<div style="border-top: 1px dashed gray;margin: 20px"></div>
<img alt="" src="../images/dojo-logo1.png" style="float:left;margin-right:5px">
<p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p>
<p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p>
</div>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום World!"'>
</div>
</div>
</div>
</div>
<div dir="rtl" id="view4" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir RTL | textDir LTR</h1>
<div data-dojo-type="dojox.mobile.Accordion" dir="rtl" data-dojo-props='textDir: "ltr",singleOpen:true, roundRect:true' style="height:400px;">
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello World!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../data/fragment1.html"'>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום עולם!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='iconBase:"../images/tab-icon-11h.png"'>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u1space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u2space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
Wi-Fi!
</li>
</ul>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello עולם!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane">
<div style="padding:10px">
<div style="font-size: 24px">Unbeatable JavaScript Tools</div>
<div style="border-top: 1px dashed gray;margin: 20px"></div>
<img alt="" src="../images/dojo-logo1.png" style="float:left;margin-right:5px">
<p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p>
<p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p>
</div>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום World!"'>
</div>
</div>
</div>
</div>
<div id="view5" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir RTL | textDir RTL</h1>
<div data-dojo-type="dojox.mobile.Accordion" dir="rtl" data-dojo-props='textDir: "rtl",singleOpen:true, roundRect:true' style="height:400px;">
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello World!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../data/fragment1.html"'>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום עולם!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='iconBase:"../images/tab-icon-11h.png"'>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u1space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u2space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
Wi-Fi!
</li>
</ul>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello עולם!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane">
<div style="padding:10px">
<div style="font-size: 24px">Unbeatable JavaScript Tools</div>
<div style="border-top: 1px dashed gray;margin: 20px"></div>
<img alt="" src="../images/dojo-logo1.png" style="float:left;margin-right:5px">
<p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p>
<p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p>
</div>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום World!"'>
</div>
</div>
</div>
</div>
<div dir="rtl" id="view6" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir RTL | textDir AUTO</h1>
<div data-dojo-type="dojox.mobile.Accordion" dir="rtl" data-dojo-props='textDir: "auto",singleOpen:true, roundRect:true' style="height:400px;">
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello World!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../data/fragment1.html"'>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום עולם!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='iconBase:"../images/tab-icon-11h.png"'>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u1space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
u2space!
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'>
Wi-Fi!
</li>
</ul>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Hello עולם!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane">
<div style="padding:10px">
<div style="font-size: 24px">Unbeatable JavaScript Tools</div>
<div style="border-top: 1px dashed gray;margin: 20px"></div>
<img alt="" src="../images/dojo-logo1.png" style="float:left;margin-right:5px">
<p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p>
<p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p>
</div>
</div>
<div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"שלום World!"'>
</div>
</div>
</div>
</div>
</div>
</body>
</html>