Skip to content

Commit

Permalink
Note that this plugin is not official; update options
Browse files Browse the repository at this point in the history
  • Loading branch information
kflorence committed Jun 14, 2011
1 parent 2786c07 commit 624c79f
Showing 1 changed file with 48 additions and 43 deletions.
91 changes: 48 additions & 43 deletions readme.md
@@ -1,4 +1,4 @@
# jQuery.ui.wizard
# jQuery.ui.wizard ( unofficial )

$( "form" ).wizard( [ options ] );

Expand Down Expand Up @@ -33,48 +33,53 @@ next step in the current branch, by default.
Options is a map of key/value pairs that can be passed into the plugin as the
first argument upon initialization. The default values are shown below:

options: {
animations: {
show: {
options: {
duration: 0
},
properties: {
opacity: "show"
}
},
hide: {
options: {
duration: 0
},
properties: {
opacity: "hide"
}
}
},
backward: ".backward",
branches: ".branch",
enableSubmit: false,
forward: ".forward",
header: ":header:first",
initialStep: 0,
stateAttribute: "data-state",
stepClasses: {
current: "current",
exclude: "exclude",
stop: "stop",
submit: "submit",
unidirectional: "unidirectional"
},
steps: ".step",
submit: ":submit",
transitions: {
default: function( step ) {
return this.stepIndex( step.nextAll( selector.step ) );
}
},
unidirectional: false
}
options: {
animations: {
show: {
options: {
duration: 0
},
properties: {
opacity: "show"
}
},
hide: {
options: {
duration: 0
},
properties: {
opacity: "hide"
}
}
},
backward: ".backward",
branches: ".branch",
disabled: false,
enableSubmit: false,
forward: ".forward",
header: ":header:first",
initialStep: 0,
stateAttribute: "data-state",
stepClasses: {
current: "current",
exclude: "exclude",
stop: "stop",
submit: "submit",
unidirectional: "unidirectional"
},
steps: ".step",
submit: ":submit",
transitions: {},
unidirectional: false,

/* callbacks */
afterBackward: null,
afterForward: null,
afterSelect: null,
beforeBackward: null,
beforeForward: null,
beforeSelect: null
}

By default the wizard will start on the first step, show and hide steps
instantly, transition to the next step in the same branch as the current step
Expand Down

0 comments on commit 624c79f

Please sign in to comment.