UNPKG

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.

54 lines (48 loc) 1.19 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <title>FixedSplitter Test</title> <link href="../themes/iphone/FixedSplitter.css" rel="stylesheet"/> <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> <script type="text/javascript"> require([ "dojo/dom", "dojo/ready", "dojox/mobile/FixedSplitter", "dojox/mobile/Pane", "dojox/mobile/parser" ], function(dom, ready, FixedSplitter, Pane){ ready(function(){ var w = new FixedSplitter({ orientation: "H" }, dom.byId("container")); w.startup(); var p0 = new Pane({ innerHTML: "pane #1 (width=200px)" }); p0.domNode.style.backgroundColor = "yellow"; p0.domNode.style.width = "200px"; w.addChild(p0); var p1 = new Pane({ innerHTML: "pane #2" }); p1.domNode.style.backgroundColor = "pink"; w.addChild(p1); }); }); </script> <style type="text/css"> html, body{ width: 100%; height: 100%; padding: 0px; margin: 0px; overflow: hidden; } </style> </head> <body> <div id="container"></div> </body> </html>