Using some css , and the onInit
, onNext
, onPrevious
you could reach your need :
First to avoid first tab click set pointer events to none as below :
.wizard-navigation ul li:first-child {
pointer-events:none;
visibility:hidden
}
Then you have to hide tabs on wizard initialization :
onInit : function(tab, navigation, index){
$(".wizard-navigation").hide(); // hiding tab wizard
//... rest of code
},
then in onNext show navtabs :
Then you have to hide tabs on wizard initialization :
onNext : function(tab, navigation, index){
$(".wizard-navigation").show(); // shiing tab wizard
//... rest of code
},
then in onPrevious check if index === 0 then hide it again
onPrevious : function(tab, navigation, index){
if(index === 0) $(".wizard-navigation").hide(); // hiding tab wizard
//... rest of code
},
Here is a Pen
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…