Comments (5)
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.
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.
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.
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.
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)
- Calling $('#rootwizard').bootstrapWizard({'tabClass': 'bwizard-steps'}) in a controller layer HOT 4
- First Back button link history Back
- Custom Buttons on Mobile HOT 1
- Package.json
- How to initialize the index when it is opened multiple times
- How to dynamically add tabs and content
- Bootstrap 4 Integreation HOT 5
- The index given as argument in onTabShow is -1
- MVC Twitter Bootstrap Wizard Disappear after validation Errors HOT 2
- Change validation message
- MVC Twitter Bootstrap Wizard : Problem with Next, Previous buttons
- How to use the 'hide' method HOT 1
- Input type file not working
- OnTabShow() is not triggered on last tab
- How can i ignore disable tabs on next button
- Reset Wizard HOT 1
- Please make update for Bootstrap 4 HOT 1
- Trying to detect when I am on the last and second-to-last tabs
- Useful Snippet: How to detect which tab (by name) you are on.
- Cannot get the previously active tab.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-bootstrap-wizard.