-
Notifications
You must be signed in to change notification settings - Fork 27
Public Methods
desdev edited this page Sep 13, 2010
·
3 revisions
As of version 0.3a, the plugin has been made a bit more object-oriented. (as much as Javascript will allow, since it is prototype-oriented) As such, there are now some internal methods that will be exposed to the user in order to make more flexible implementations of the Wizard.
How to call upon these methods
$([wizard_selector]).jWizard("changeStep", 2);
$([wizard_selector]).jWizard("changeStep", $("#step2"));
$([wizard_selector]).jWizard("firstStep");
$([wizard_selector]).jWizard("lastStep");
$([wizard_selector]).jWizard("previousStep");
$([wizard_selector]).jWizard("nextStep");
Method Name | Parameters | Description | Returns |
---|---|---|---|
changeStep() | (jQuery/int) nextStep required | Programmatically set the current step of the Wizard (with either a jQuery object or an index) | void |
firstStep() | void | Programmatically jump to the first step in the collection | void |
lastStep() | void | Programmatically jump to the last step in the collection | void |
previousStep() | void | Programmatically jump to the previous step in the collection (the same behavior of the previous ) | void |
nextStep() | void | Programmatically jump to the next step in the collection (the same behavior of the next ) | void |