acc-wizard

Wizard implementation for bootstrap based on accordion

  • 所有者: sathomas/acc-wizard
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者sathomas/acc-wizard
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證
所有者活动
創建於2012-10-19 21:33:13
推送於2015-07-25 19:11:01
最后一次提交2015-07-25 15:11:00
發布數0
用户参与
星數216
關注者數19
派生數75
提交數28
已啟用問題?
問題數17
打開的問題數4
拉請求數8
打開的拉請求數1
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?