#[jquery-wizard](https://github.com/amazingSurge/jquery-wizard) ![bower][bower-image] [![devDependency status][devdeps-image]][devdeps-link] `jquery-wizard` is a lightweight jquery plugin for creating step-by-step wizards. ##Getting jquery-wizard ###Download Get the latest build, ready to go: * [Development](https://raw.githubusercontent.com/amazingSurge/jquery-wizard/master/dist/jquery-wizard.js) - unminified * [Production](https://raw.githubusercontent.com/amazingSurge/jquery-wizard/master/dist/jquery-wizard.min.js) - minified ###Build From Source If you want build from source: git clone git@github.com:amazingSurge/jquery-wizard.git cd jquery-wizard sudo npm install grunt Done! ###Install From Bower bower install jquery-wizard.js ## Usage ### Include Files ```html ``` ### Html Structure ```html
Step Content 1
Step Content 2
Step Content 3
``` ### Javascript ```html (function(){ $('.wizard').wizard({ onFinish: function(){ // do something } }); })(); ``` ## Options ```javascript $('.wizard').wizard({ step: '.wizard-steps > li', getPane: function(index, step){ return this.$element.find('.wizard-content').children().eq(index); }, buttonsAppendTo: 'this', templates: { buttons: function(){ var options = this.options; return '
'+ ''+options.buttonLabels.back+'' + ''+options.buttonLabels.next+'' + ''+options.buttonLabels.finish+'' + '
'; } }, // state classes classes: { step: { done: 'done', error: 'error', active: 'current', disabled: 'disabled', activing: 'activing', loading: 'loading' }, pane: { active: 'active', activing: 'activing' }, button: { hide: 'hide', disabled: 'disabled' } }, autoFocus: true, keyboard: true, enableWhenVisited: false, buttonLabels: { next: 'Next', back: 'Back', finish: 'Finish' }, loading: { show: function(step) {}, hide: function(step) {}, fail: function(step) {} }, cacheContent: false, validator: function(step){ return true; }, // callbacks onInit: function(){}, onNext: function(from, to){}, onBack: function(from, to){}, onReset: function(){}, onBeforeShow: function(from, to){}, onAfterShow: function(step){}, onBeforeHide: function(step){}, onAfterHide: function(step){}, onBeforeLoad: function(step){}, onAfterLoad: function(step){}, onBeforeChange: function(from, to){}, onAfterChange: function(from, to){}, onStateChange: function(step, enter, state){}, onFinish: function(){} }); ``` ## Bugs and feature requests Anyone and everyone is welcome to contribute. Please take a moment to review the [guidelines for contributing](CONTRIBUTING.md). Make sure you're using the latest version of jquery-wizard before submitting an issue. * [Bug reports](CONTRIBUTING.md#bug-reports) * [Feature requests](CONTRIBUTING.md#feature-requests) ## Copyright and license Copyright (C) 2015 amazingSurge. Licensed under [the GPL license](LICENSE-GPL). [bower-image]: https://img.shields.io/bower/v/jquery-wizard.js.svg?style=flat [bower-link]: https://david-dm.org/amazingSurge/jquery-wizard.js/dev-status.svg [devdeps-image]: https://img.shields.io/david/dev/amazingSurge/jquery-wizard.svg?style=flat [devdeps-link]: https://david-dm.org/amazingSurge/jquery-wizard#info=devDependencies