(I deleted my last version of this because the title was no longer relevant to what I was typing. Sorry for any confusion.)
Hi all,
I'm new to ChocolateChip-UI and I'm still trying to understand how it works. I want to use a split layout for the app, and have a couple related questions. Based on
this brief conversation I was hoping the split layout would transform into something like the slide-out when the window gets small enough. Is that what it should do? I've created a very simple test case and the left panel never changes width as I shrink the browser. Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="msapplication-tap-highlight" content="no">
<link rel="stylesheet" href="libs/chui-ios-3.6.3.min.css">
<script type="text/javascript" src="libs/jquery-2.1.1.js"></script>
<script src="libs/chui-3.6.3.min.js"></script>
<title>Test</title>
</head>
<body class="splitlayout">
<nav>
<h1>Master</h1>
</nav>
<article id="layout-left" class="master">
<section>
Content
</section>
</article>
<nav>
<h1>Detail</h1>
</nav>
<article id="layout-right" class="detail">
<section>
Content
</section>
</article>
</body>
</html>
Or am I missing something? What I would like is a menu which slides in and fills the screen on small devices, and acts as a sidebar or panel on larger screens.
Secondly, with this split layout, is there a preferred way to change content on the layout panels? Is it possible to nest articles so that I could have, for example, a series of articles under paging control in the detail side of the split layout? This one I can just try, but I wanted to know if there is a better way to do something like this.
Thanks,
Trygve