Skip to content

Commit

Permalink
upd wizard demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Jan 6, 2015
1 parent 459cf49 commit 99bc898
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 36 deletions.
12 changes: 6 additions & 6 deletions docs/js/metro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/js/metro/metro-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
finishStep: 'default',
buttons: {
cancel: true,
help: false,
help: true,
prior: true,
next: true,
finish: true
Expand Down
43 changes: 42 additions & 1 deletion docs/wizard.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>
<script>
$(function(){
$('#wizard').wizard({
locale: 'ru',
locale: 'en',
onCancel: function(){
$.Dialog({
title: 'Wizard',
Expand Down Expand Up @@ -77,6 +77,47 @@ <h1>
});
</script>
</div>

<h3>Html definition</h3>

<pre class="prettyprint linenums">
&lt;div class="wizard" id="wizard"&gt;
&lt;div class="steps"&gt;
&lt;div class="step"&gt;Page 1&lt;/div&gt;
&lt;div class="step"&gt;Page 2&lt;/div&gt;
&lt;div class="step"&gt;Page 3&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>

<h3>JavaScript</h3>
<pre class="prettyprint linenums">
$(function(){
$('#wizard').wizard({
stepper: true, // show stepper, see http://metroui.org.ua/stepper.html
stepperType: 'default', // stepper type, see http://metroui.org.ua/stepper.html
locale: $.Metro.currentLocale, //'en', 'ua', 'ru', ... more languages defined in metro-locale.js
finishStep: 'default', // 'default' - last page or int - number of page
buttons: { //show or hide buttons
cancel: true,
help: true,
prior: true,
next: true,
finish: true
},

// Buttons click methods, page change events
onCancel: function(page, wiz){...},
onHelp: function(page, wiz){...},
onPrior: function(page, wiz){...},
onNext: function(page, wiz){...},
onFinish: function(page, wiz){...},
onPage: function(page, wiz){...}
});
});
</pre>


</div>

<script src="js/hitua.js"></script>
Expand Down
Loading

0 comments on commit 99bc898

Please sign in to comment.