acc-wizard

Wizard implementation for bootstrap based on accordion

  • Owner: sathomas/acc-wizard
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

acc-wizard

An accordion-based wizard based on Bootstrap styles.

(For a CoffeeScript version, as well as many other improvements, check out Andrew Feng's fork.)

This wizard is implemented as a jQuery plugin. Include the appropriate CSS and javascript files in your HTML, and then activate the wizard by calling it, e.g.

$(window).load(function() {
            $(".acc-wizard").accwizard();
})

For a demonstration and example usage, see here.

The plugin accepts options as a single object argument. Supported options are:

  • addButtons add next/prev buttons to panels (default: true)
  • sidebar selector for task sidebar (default: ".acc-wizard-sidebar")
  • activeClass class to indicate the active task in sidebar (default: "acc-wizard-active")
  • completedClass class to indicate task is complete (default: "acc-wizard-completed")
  • todoClass class to indicate task is still pending (default: "acc-wizard-todo")
  • stepClass class for step buttons within panels (default: "acc-wizard-step")
  • nextText text for next button (default: "Next Step")
  • backText text for back button (default: "Go Back")
  • nextType HTML input type for next button (default: "submit")
  • backType HTML input type for back button (default: "reset")
  • nextClasses class(es) for next button (default: "btn btn-primary")
  • backClasses class(es) for back button (default: "btn")
  • beforeNext function to call before next step (allowing for validation -- return false to prevent next)
  • onNext function to call on next step
  • beforeBack function to call before back step (allowing for validation -- return false to prevent back)
  • onBack function to call on back up
  • onInit a chance to hook initialization
  • onDestroy a chance to hook destruction

Main metrics

Overview
Name With Ownersathomas/acc-wizard
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:
所有者活动
Created At2012-10-19 21:33:13
Pushed At2015-07-25 19:11:01
Last Commit At2015-07-25 15:11:00
Release Count0
用户参与
Stargazers Count216
Watchers Count19
Fork Count75
Commits Count28
Has Issues Enabled
Issues Count17
Issue Open Count4
Pull Requests Count8
Pull Requests Open Count1
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private