Comments (3)
You'r saying that bootstrap tabs within a wizard step breaks if onTabClick returns false?
from twitter-bootstrap-wizard.
yes, if onTabClick returns false,i can't change to "two_in_one" tab on click
from twitter-bootstrap-wizard.
Cannot reproduce.
Please provide a test case. The following code was used to test this:
<!DOCTYPE html>
<html>
<head>
<title>Basic Example</title>
<!-- Bootstrap -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../prettify.css" rel="stylesheet">
</head>
<body>
<div class='container'>
<div class="span12">
<section id="wizard">
<div class="page-header">
<h1>Basic Wizard</h1>
</div>
<div id="rootwizard3">
<ul>
<li><a href="#tab111" data-toggle="tab">First</a></li>
<li><a href="#tab222" data-toggle="tab">Second</a></li>
<li><a href="#tab333" data-toggle="tab">Third</a></li>
<li><a href="#tab444" data-toggle="tab">Forth</a></li>
<li><a href="#tab555" data-toggle="tab">Fifth</a></li>
<li><a href="#tab666" data-toggle="tab">Sixth</a></li>
<li><a href="#tab777" data-toggle="tab">Seventh</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="tab111">
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#home">Home</a></li>
<li><a href="#profile">Profile</a></li>
<li><a href="#messages">Messages</a></li>
<li><a href="#settings">Settings</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="home">...</div>
<div class="tab-pane" id="profile">...1</div>
<div class="tab-pane" id="messages">...2</div>
<div class="tab-pane" id="settings">...3</div>
</div>
</div>
<div class="tab-pane" id="tab222">
2
</div>
<div class="tab-pane" id="tab333">
3
</div>
<div class="tab-pane" id="tab444">
4
</div>
<div class="tab-pane" id="tab555">
5
</div>
<div class="tab-pane" id="tab666">
6
</div>
<div class="tab-pane" id="tab777">
7
</div>
<ul class="pager wizard">
<li class="previous first" style="display:none;"><a href="#">First</a></li>
<li class="previous"><a href="#">Previous</a></li>
<li class="next last" style="display:none;"><a href="#">Last</a></li>
<li class="next"><a href="#">Next</a></li>
</ul>
</div>
</div>
</section>
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../jquery.bootstrap.wizard.js"></script>
<script src="../prettify.js"></script>
<script>
$(document).ready(function() {
$('#rootwizard3').bootstrapWizard({onTabClick: function($activeTab, $navigation, $currentIndex) {
return false;
}});
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
})
window.prettyPrint && prettyPrint()
});
</script>
</body>
</html>
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.