我已经在我的应用程序中的表单中包含了智能壁虎,在插入过程中,它工作得很好。但是,在更新期间,我希望显示访问的所有步骤,这样用户就可以直接进入选项卡s/他想要的选项卡,而不是单击next按钮。我怎样才能做到这一点?我知道我可能必须修改主js文件中的_setEvents函数,即jquery.smartWizard.min.js,但我似乎无法弄清楚。
发布于 2017-05-06 08:18:23
在anchorSettings中找到了答案。添加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发布于 2017-05-17 22:49:24
尝试将enableAllSteps设置为true:
$('#wizard').smartWizard({enableAllSteps: true});发布于 2019-05-15 08:16:08
$('#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
复制相似问题