Coder Social home page Coder Social logo

af-subpanels's Introduction

Subpanel plugin for App Framework UI

###Author: Ian Maffett

This plugin allows users to create "subpanels" that can be navigated in a panel.

Using subpanel plugin

  1. Create your container div and put the 'sub panel's indside of it. You can disable scrolling by setting scrolling="no"

  2. Create your nav div with class 'subpanelNav'

  3. 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>

Bugs

Please use github to report any bugs found. Please provide the following

  1. Any error messages from the console

  2. Line numbers of offending code

  3. Test cases

  4. Description of the Error

  5. Expected result

  6. Browser/Device you are testing on

License

All plugins are licensed under the terms of the MIT License, see the included license.txt file.

af-subpanels's People

Contributors

davidp-b avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

af-subpanels's Issues

subpanel is not defined

Hi! I'm trying to implement subpanels on my project and the console prints that subpanel is not defined on line 86, and I found that this line has subpanel all in lower-case, and in line 47 is capitalized.

Well, trying your index.html prints these 2 errors, can you check it?

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.