###Author: Ian Maffett
This plugin allows users to create "subpanels" that can be navigated in a panel.
-
Create your container div and put the 'sub panel's indside of it. You can disable scrolling by setting scrolling="no"
-
Create your nav div with class 'subpanelNav'
-
on document read, call .subpanel()
We automagically wire in the scrollers for you. If you do not want scrolling, set "scrolling='no'" on that sub panel
You must lay out your HTML accordingly
<div id="mynewdiv" title="My New Div" class="panel" scrolling="no">
<script type="text/javascript">
$(document).ready(function(){
$("#subPanel").subpanel();
});
</script>
<!-- now we start the sub panels -->
<div id='subPanel' style="position:absolute;top:0px;bottom:40px;width:100%">
<div class="insetPanel default" id='page1' style='background:green !important;height:999px'>Page 1</div>
<div class="insetPanel" id='page2' style='background:red !important'>Page 2</div>
<div class="insetPanel" id='page3' style='background:blue !important' scrolling="no">Page 3</div>
</div>
<!-- this is the footer. If must have class "subpanelNav" -->
<div class="subpanelNav" style="position:absolute;bottom:0px;height:40px;width:100%;line-height:24px;font-size:14px;text-align:center;background:black;color:white;">
<a class='icon headset' href="#page1"></a> |
<a class='icon wifi' href="#page2"></a> |
<a class='icon html5' href="#page3"></a>
</div>
</div>
Please use github to report any bugs found. Please provide the following
-
Any error messages from the console
-
Line numbers of offending code
-
Test cases
-
Description of the Error
-
Expected result
-
Browser/Device you are testing on
All plugins are licensed under the terms of the MIT License, see the included license.txt file.