Code Monkey home page Code Monkey logo

v-tabs's People

Contributors

lukaszwatroba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

v-tabs's Issues

Have lack of independency issues when using more than 1 tab menu

Hi,

I'm using the following code to implement multiple tab menus:

`

A



Tab 1
Tab 2
Tab 3

    <v-pages class="vPages--default" active="activeTabIndex">
        <v-page>
            <h3>Page 1</h3>
            <p>Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis.</p>
        </v-page>
        <v-page>
            <h3>Page 2</h3>
            <p>Maecenas malesuada elit lectus felis, malesuada ultricies.</p>
        </v-page>
        <v-page>
            <h3>Page 3</h3>
            <p>Curabitur et ligula. Ut molestie a, ultricies porta urna.</p>
        </v-page>
    </v-pages>

    <h2>B</h2>
    <v-tabs class="vTabs--default" horizontal active="activeTabIndex">
        <v-tab>Tab 1</v-tab>
        <v-tab>Tab 2</v-tab>
        <v-tab>Tab 3</v-tab>
    </v-tabs>

    <v-pages class="vPages--default" active="activeTabIndex">
        <v-page>
            <h3>Page 1</h3>
            <p>Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis.</p>
        </v-page>
        <v-page>
            <h3>Page 2</h3>
            <p>Maecenas malesuada elit lectus felis, malesuada ultricies.</p>
        </v-page>
        <v-page>
            <h3>Page 3</h3>
            <p>Curabitur et ligula. Ut molestie a, ultricies porta urna.</p>
        </v-page>
    </v-pages>

`

Code dump from above - http://pastebin.com/pCztkMgk

But when I click the tab items in the first tab menu, that same selection is also made in the 2nd tab menu. I have tried wrapping the menus within individual divs but that hasn't helped.

lazy loading of tab contents

Hi Lukas, thanks for v-tabs, a pretty nice alternative to the usual bootstrap tabsets.
To make it even more valuable I recommend to add configurable lazy-loading to v-tabs. The expected behaviour should be : once I configure v-tabs to use lazy-loading, it should load the tabs contents only if the tab gets active the very first time. When I walk through three tabs I'd want them to be initialized only once the first time a tab gets active and then kinda cache the contents (like vtabs does it now). Would you be able to add that ?

Page won't initialize when using static tabs.

I've tried to use tabs with and without ng-repeat, but it seems the tabs don't default to index 0 correctly when using the sample code for non-ng-repeating tabs.

The index is set correctly, but the tab is not highlighted/selected and the page will not show.

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.