GithubHelp home page GithubHelp logo

Comments (6)

aozora avatar aozora commented on July 30, 2024

as of now the charms should manage multiple div, but some work needs to be done. I can get to work on it.

from bootmetro.

flipdoubt avatar flipdoubt commented on July 30, 2024

Only slightly related, how can I programatically slide through the pivot control? I'm envisioning something where clicking on a link in the charms panel slides through the pivot.

from bootmetro.

aozora avatar aozora commented on July 30, 2024

you can pass as argument the index of the pivot panel to display:

$('#pivot').pivot(2); // go to the 3rd pane

remember that the index is zero based!

you can also use:
$('#pivot').pivot('next'); // go to the next
$('#pivot').pivot('prev'); //go to the previous

This will be documented in the pivot.html.

from bootmetro.

flipdoubt avatar flipdoubt commented on July 30, 2024

Ah-ha! I figured it out. If you pass the same int into pivot two times in a row (or the user hits the same link twice by mistake), the pivot method stops responding. You can force this to happen by doing this:

$("#pivot").pivot(1).pivot(1).pivot(0);

You will see it does not go back to index 0 after going to index 1 twice. The demo does it too if you click on "item 2" twice and then try going back to "item 1".

from bootmetro.

aozora avatar aozora commented on July 30, 2024

The pivot plugin is atmost the same of the bootstrap carousel plugin, and this issue is this one: twbs/bootstrap#4205

I think that I should find time to rewrite it....

from bootmetro.

flipdoubt avatar flipdoubt commented on July 30, 2024

Show I should not try coding up a "safe" pivot function that ignores the request when destination.hasClass("active") == true?

from bootmetro.

Related Issues (20)

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.