Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php smartwizard 4中的所有活动步骤_Php_Jquery_Smart Wizard - Fatal编程技术网

Php smartwizard 4中的所有活动步骤

Php smartwizard 4中的所有活动步骤,php,jquery,smart-wizard,Php,Jquery,Smart Wizard,我已经将smartwizard包含在我的应用程序的表单中,在插入过程中,它非常有效。 但是,在更新过程中,我希望显示已访问的所有步骤,这样用户就可以直接进入所需的选项卡,而不是单击“下一步”按钮。 我怎样才能做到这一点? 我知道我可能需要更改主js文件中的_setEvents函数,即jquery.smartWizard.min.js,但我似乎无法解决这个问题。在anchorSettings中找到了答案。 添加“AnchorsSettings”参数并更改值,如下所示: anchorClickabl

我已经将smartwizard包含在我的应用程序的表单中,在插入过程中,它非常有效。 但是,在更新过程中,我希望显示已访问的所有步骤,这样用户就可以直接进入所需的选项卡,而不是单击“下一步”按钮。 我怎样才能做到这一点?
我知道我可能需要更改主js文件中的_setEvents函数,即jquery.smartWizard.min.js,但我似乎无法解决这个问题。

在anchorSettings中找到了答案。 添加“AnchorsSettings”参数并更改值,如下所示:

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

尝试将enableAllSteps设置为true:

$('#wizard').smartWizard({enableAllSteps: true});
    $('#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' }
    });