Wizards
Provides a mechanism to display steppable content
Basic Usage
Wizards are initialized by class wizard
on page load.
Below is the basic HTML required to work with a wizard. First child of the .wizard
element should be a ul
to house the wizard navigation elements. Second child of the .wizard
element should be a div
with
a child div
for each wizard step.
And id
on each step div
allows for linking to the step through both URL or an a
on the page.
<div class="wizard">
<ul>
<li><a href="#step-1">Step Title<br /><small>Step description</small></a></li>
<li><a href="#step-2">Step Title<br /><small>Step description</small></a></li>
<li><a href="#step-3">Step Title<br /><small>Step description</small></a></li>
<li><a href="#step-4">Step Title<br /><small>Step description</small></a></li>
</ul>
<div>
<div id="step-1" class="">
Step Content
</div>
<div id="step-2" class="">
Step Content
</div>
<div id="step-3" class="">
Step Content
</div>
<div id="step-4" class="">
Step Content
</div>
</div>
</div>
Advanced Usage
The jQuery Smart Wizard 4 plugin provides an in-depth array of options that can be set upon initialization, including event handlers which can help to validate form content before making ajax calls etc.
Visit the Smart Wizard documentation for full detail on each option.
To initialize your wizard using options that are not specified by default, open js/mrare/wizard.js
and edit the options object. Defaults are shown below.
$('.wizard').smartWizard({
transitionEffect: 'fade',
showStepURLhash: false,
toolbarSettings: { toolbarPosition: 'none' },
});