Line | |
---|
1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
---|
5 | <title>FixedSplitter Test</title> |
---|
6 | |
---|
7 | <link href="../themes/iphone/FixedSplitter.css" rel="stylesheet"/> |
---|
8 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
---|
9 | |
---|
10 | <script type="text/javascript"> |
---|
11 | require([ |
---|
12 | "dojo/dom", |
---|
13 | "dojo/ready", |
---|
14 | "dojox/mobile/FixedSplitter", |
---|
15 | "dojox/mobile/Pane", |
---|
16 | "dojox/mobile/parser" |
---|
17 | ], function(dom, ready, FixedSplitter, Pane){ |
---|
18 | ready(function(){ |
---|
19 | var w = new FixedSplitter({ |
---|
20 | orientation: "H" |
---|
21 | }, dom.byId("container")); |
---|
22 | w.startup(); |
---|
23 | |
---|
24 | var p0 = new Pane({ |
---|
25 | innerHTML: "pane #1 (width=200px)" |
---|
26 | }); |
---|
27 | p0.domNode.style.backgroundColor = "yellow"; |
---|
28 | p0.domNode.style.width = "200px"; |
---|
29 | w.addChild(p0); |
---|
30 | |
---|
31 | var p1 = new Pane({ |
---|
32 | innerHTML: "pane #2" |
---|
33 | }); |
---|
34 | p1.domNode.style.backgroundColor = "pink"; |
---|
35 | w.addChild(p1); |
---|
36 | }); |
---|
37 | }); |
---|
38 | </script> |
---|
39 | |
---|
40 | <style type="text/css"> |
---|
41 | html, body{ |
---|
42 | width: 100%; |
---|
43 | height: 100%; |
---|
44 | padding: 0px; |
---|
45 | margin: 0px; |
---|
46 | overflow: hidden; |
---|
47 | } |
---|
48 | </style> |
---|
49 | </head> |
---|
50 | <body> |
---|
51 | <div id="container"></div> |
---|
52 | </body> |
---|
53 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.