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.

63 lines (59 loc) 1.45 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/_base/connect", "dojo/ready", "dijit/registry", "dojox/mobile/parser", "dojox/mobile/FixedSplitter", "dojox/mobile/Pane" ], function(connect, ready, registry){ ready(function(){ connect.connect(null, "onresize", function(){ registry.byId("splitter1").resize(); }); }); }); </script> <style type="text/css"> html, body{ width: 100%; height: 100%; padding: 0px; margin: 0px; overflow: hidden; } #pane0 { background-color: cyan; height: 100px; } #pane1 { background-color: yellow; border-bottom: 1px solid black; } #pane2 { background-color: pink; height: 100px; } </style> </head> <body> <div id="splitter1" data-dojo-type="dojox.mobile.FixedSplitter" data-dojo-props='orientation:"V", variablePane:1'> <div id="pane0" data-dojo-type="dojox.mobile.Pane"> pane #0 (height=100px) </div> <div id="pane1" data-dojo-type="dojox.mobile.Pane"> pane #1 (height=variable) </div> <div id="pane2" data-dojo-type="dojox.mobile.Pane"> pane #2 (height=100px) </div> </div> </body> </html>