Giter VIP home page Giter VIP logo

Comments (5)

gilluminate avatar gilluminate commented on May 16, 2024

Hi infatti,
I am actually working with Vince on this project now. I was considering adding add/remove functionality to this project. I just haven't had the time yet.

from twitter-bootstrap-wizard.

infatti avatar infatti commented on May 16, 2024

Ok. Will twitter-bootstrap-wizard also work with your old project bootstrap-wizard?

I see that here you have an option to "disable" a tab. Is it possible to "disable" a step in the bootstrap-wizard?

from twitter-bootstrap-wizard.

gilluminate avatar gilluminate commented on May 16, 2024

The 2 plugins would almost certainly conflict with each other. I would not recommend using both.

The option to disable is not built in to this plugin, it is probably a method of Bootstrap proper that you are seeing.

My old plugin would not hide/unhide, it would only remove/add. You can actually accomplish this manually fairly easily, which is why I haven't given adding it to the plugin a very high priority.

For example:

var index = 0; //set the index to the tab you want to remove

$('#myWizard .navbar li').eq(index).remove();
$('#myWizard .tab-content > div).eq(index).remove();

from twitter-bootstrap-wizard.

VinceG avatar VinceG commented on May 16, 2024

Also, If you'd like to just disable a tab that's something that Bootstrap comes with. Please see:
http://twitter.github.com/bootstrap/components.html#navs

For any nav component (tabs, pills, or list), add .disabled for gray links and no hover effects. Links will remain clickable, however, unless you remove the href attribute. Alternatively, you could implement custom JavaScript to prevent those clicks.

from twitter-bootstrap-wizard.

infatti avatar infatti commented on May 16, 2024

Re: gilluminates comment. I am using your old plugin.

$("#wizard").bwizard("remove",2); seems to add additional labels to the step nav?

Update: This works for removing steps on the old plugin:
$('#wizardNewIncidentSource').bwizard('remove',4);
$('#wizardNewIncidentSource .bwizard-steps li a:not(:last-child)').remove(); // fix the addition of redundant labels

For your new plugin maybe adding ability to hide or show steps and at the same time reflect this change in the plugin navigation so it does not think it has to navigate beyond what is actually showing?

from twitter-bootstrap-wizard.

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.