Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FuelUX Wizard component - how to manually select active step?

I'm not seeing any documentation for this.

How do you manually select which panel is active in the wizard component?

I know it's in there somewhere because you can click on one of the tabs once it's been passed, and navigate back to a previous tab.

like image 391
Gabriel Alack Avatar asked Jun 05 '13 05:06

Gabriel Alack


2 Answers

Yes, you can change wizard step:

$('#MyWizard').wizard('selectItem', { step: step });

UPDATE:

After the last updates now it works with selectedItem

$('#MyWizard').wizard('selectedItem', { step: step });

Note the change from select to selected*.

like image 79
FlyBot Avatar answered Oct 17 '22 04:10

FlyBot


I don't think there is a way to directly set the active panel since the upcoming steps are disabled until activated using prev/next.

Once a step has been "activated" you could use jquery to trigger a tab click..

$('[data-target=#step2]').trigger("click");

Here is a working example: http://www.bootply.com/60319 -- If you navigate to the last step (5), there is a link that returns to step 2.

like image 33
Zim Avatar answered Oct 17 '22 05:10

Zim