【问题标题】:All steps active in smartwizard 4smartwizard 4中的所有步骤
【发布时间】:2017-05-06 07:25:33
【问题描述】:
我在我的应用程序的表单中包含了 smartwizard,它在插入过程中效果很好。
但是,在更新期间,我想显示所有访问过的步骤,这样用户就可以直接进入他/她想要的选项卡,而不是单击下一步按钮。
我怎样才能做到这一点?
我知道我可能必须在主 js 文件中的 _setEvents 函数中进行更改,即 jquery.smartWizard.min.js,但我似乎无法弄清楚..
【问题讨论】:
标签:
php
jquery
smart-wizard
【解决方案1】:
在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
【解决方案2】:
尝试将 enableAllSteps 设置为 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' }
});