问题
I've included smartwizard in the forms in my application, and it works great, during insert. However, during update, I want to show all steps visited, so that instead of clicking on the next button, the user can get directly to the tab s/he wants. How can I achieve that? I understand I may have to make changes in the _setEvents function in the main js file, i.e., jquery.smartWizard.min.js, but I can't seem to figure it out..
回答1:
Found the answer in anchorSettings. You add the anchorSettings parameter and change the values as follows,
anchorClickable : true, // Enable/Disable anchor navigation
enableAllAnchors : true, // Activates all anchors clickable all times
markDoneStep : true, // add done css
enableAnchorOnDoneStep : true // Enable/Disable the done steps navigation
回答2:
Try setting enableAllSteps to true:
$('#wizard').smartWizard({enableAllSteps: true});
回答3:
$('#smartwizard').smartWizard({
selected: 0,
theme: 'default',
transitionEffect: 'fade',
showStepURLhash: false,
anchorSettings: {
anchorClickable: true, // Enable/Disable anchor navigation
enableAllAnchors: true, // Activates all anchors clickable all times
markDoneStep: true, // add done css
enableAnchorOnDoneStep: true // Enable/Disable the done steps navigation
},
lang: { next: 'Next', previous: 'Previous' }
});
来源:https://stackoverflow.com/questions/43817880/all-steps-active-in-smartwizard-4