All steps active in smartwizard 4

喜夏-厌秋 提交于 2019-12-07 13:11:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!