You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d4315e
Browse filesBrowse the repository at this point in the historyBrowse files
<p>Here you can use whatever you want. You can use other directives, binding, etc.</p>
@@ -73,6 +73,7 @@ Let's go step by step to see how this works.
73
73
74
74
1) You need to declare a master `wizard` directive. This wizard directive, has the following options as attributes:
75
75
***on-finish**: Here you can put a function to be called when the wizard is finished. The syntax here is very similar to `ng-click`
76
+
***on-cancel**: Here you can put a function to be called when the wizard is cancelled. The syntax here is very similar to `ng-click`
76
77
***name**: The name of the wizard. By default, it's called "Default wizard". It's used for the `WizardHandler` which we'll explain later.
77
78
***edit-mode**: If set to true, this will set the wizard as edit mode. Edit mode means that all steps have been completed and the user can now navigate to and modify any step. Defaults to false.
78
79
***hide-indicators**: If set to true, the indicators in the bottom of the page showing the current page and allowing navigation for the wizard will be hidden. Defaults to false.
@@ -91,7 +92,7 @@ Let's go step by step to see how this works.
91
92
92
93
3) Inside the step, we now see a button which has a `wz-next` attribute. That means that clicking that button will send the user to the next step of wizard. Similar to `wz-next`, we have the following attributes:
93
94
***wz-previous**: Goes to the previous step
94
-
***wz-cancel**: Goes back to the first step
95
+
***wz-cancel**: Calls on-cancel if defined, otherwise the default action is to go back to the first step
95
96
***wz-finish**: Finishes the wizard and calls the on-finish later on. It's important to note that if we're in the last step and we put `wz-next` it'll be the same as putting `wz-finish` as the wizard will know we're at the last screen.
96
97
***wz-reset**: This will reset the wizard meaning bring the user to the first step and reset each step to being incomplete.
97
98
@@ -110,7 +111,7 @@ A step can be conditionally disabled and may change at any time either adding it
0 commit comments