Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Ignores dev.html, updates fuel ux version number and version, and bower dependencies #1146

Merged
merged 8 commits into from
Mar 6, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added documentation around using selectedItem to _set_ selected item …
…instead of just _get_
  • Loading branch information
cmcculloh committed Mar 3, 2015
commit 2435426d764fc8faf4e428d5a8e03773fad3daa3
4 changes: 2 additions & 2 deletions _includes/js/wizard-example.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ul class="steps">
<li data-step="1" class="active"><span class="badge">1</span>Campaign<span class="chevron"></span></li>
<li data-step="1" data-name="campaign" class="active"><span class="badge">1</span>Campaign<span class="chevron"></span></li>
<li data-step="2"><span class="badge">2</span>Recipients<span class="chevron"></span></li>
<li data-step="3"><span class="badge">3</span>Template<span class="chevron"></span></li>
<li data-step="3" data-name="template"><span class="badge">3</span>Template<span class="chevron"></span></li>
</ul>
<div class="actions">
<button type="button" class="btn btn-default btn-prev"><span class="glyphicon glyphicon-arrow-left"></span>Prev</button>
14 changes: 13 additions & 1 deletion _includes/js/wizard.html
Original file line number Diff line number Diff line change
@@ -94,11 +94,22 @@ <h3 id="wizard-usage-methods">Methods</h3>
<dd>Moves to the next step</dd>

<dt id="wizard-usage-methods-selectedItem">.wizard('selectedItem')</dt>
<dd>Returns the current step index
<dd>Returns the current step index.
{% highlight js %}
$('#myWizard').wizard('selectedItem');
{% endhighlight %}
</dd>

<dt id="wizard-usage-methods-selectedItem">.wizard('selectedItem', 3)</dt>
<dd>Moves to passed in step. This can be either an integer or the `data-name` of a step.
{% highlight js %}
$('#myWizard').wizard('selectedItem', {
step: 3
});

$('#myWizard').wizard('selectedItem', {
step: "named item"
});
{% endhighlight %}
</dd>

@@ -220,6 +231,7 @@ <h5 id="wizard-examples-sample-methods">Sample Methods</h5>
<button type="button" class="btn btn-default" id="btnWizardNext">next</button>
<button type="button" class="btn btn-default" id="btnWizardStep">log current step index</button>
<button type="button" class="btn btn-default" id="btnWizardSetStep">jump to step 3</button>
<button type="button" class="btn btn-default" id="btnWizardSetStepByName">jump to named step (Template)</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default" id="btnWizardAddSteps">add step at index 2</button>
5 changes: 5 additions & 0 deletions assets/js/wizard-examples.js
Original file line number Diff line number Diff line change
@@ -47,6 +47,11 @@ define(function (require) {
step: 3
});
});
$('#btnWizardSetStepByName').on('click', function () {
$('#myWizard').wizard('selectedItem', {
step: "template"
});
});

var emailSetupSamplePane = '<div class="bg-warning alert">' +
' <h4>Setup Message</h4>' +