@@ -42,17 +42,17 @@ To use the this wizard component in an angular 2 project simply add a wizard com
4242
4343``` html
4444<wizard >
45- <wizard-step title =" Title of step 1" >
45+ <wizard-step stepTitle =" Title of step 1" >
4646 Content of Step 1
4747 <button type =" button" nextStep >Next Step</button >
4848 <button type =" button" goToStep =" 2" >Go directly to third Step</button >
4949 </wizard-step >
50- <wizard-step title =" Title of step 2" optionalStep >
50+ <wizard-step stepTitle =" Title of step 2" optionalStep >
5151 Content of Step 2
5252 <button type =" button" previousStep >Go to previous step</button >
5353 <button type =" button" nextStep >Go to next step</button >
5454 </wizard-step >
55- <wizard-step title =" Title of step 3" >
55+ <wizard-step stepTitle =" Title of step 3" >
5656 Content of Step 3
5757 <button type =" button" previousStep >Previous Step</button >
5858 <button type =" button" (click) =" finishFunction()" >Finish</button >
@@ -127,9 +127,9 @@ Possible `<wizard>` parameters:
127127The ` <wizard-step></wizard-step> ` environment is the wizard step environment.
128128Every step that belongs to your wizard must be defined inside its own ` <wizard-step></wizard-step> ` environment.
129129
130- #### \[ title \]
131- A wizard must contain a title, which is shown in the navigation bar of the wizard.
132- The title of a step can be set by adding a ` title ` attribute to the step definition.
130+ #### \[ stepTitle \]
131+ A wizard step must contain a title, which is shown in the navigation bar of the wizard.
132+ The step title can be set by adding a ` stepTitle ` attribute to the step definition.
133133
134134#### \[ navigationSymbol\]
135135Sometimes it's useful to add a symbol in the center of the circle in the navigation bar, that belongs to the step.
@@ -140,7 +140,7 @@ Be aware, that not all layouts display the symbols. Only the layouts `large-fill
140140If you want to add a ` 2 ` to the circle in the navigation bar belonging to the second step you can do it like this:
141141
142142``` html
143- <wizard-step title =" Second Step" navigationSymbol =" 2" ></wizard-step >
143+ <wizard-step stepTitle =" Second Step" navigationSymbol =" 2" ></wizard-step >
144144```
145145
146146In addition to normal symbols it's also possible to use an icon from a font as a symbol.
@@ -157,7 +157,7 @@ For example, if you want to show the icon with the unicode `\f2dd` of [FontAweso
157157you need to set the ` navigationSymbol ` input attribute of the step to `  ` and the ` navigationSymbolFontFamily ` to ` FontAwesome ` :
158158
159159``` html
160- <wizard-step title =" Second Step" navigationSymbol ="  ; " navigationSymbolFontFamily =" FontAwesome" ></wizard-step >
160+ <wizard-step stepTitle =" Second Step" navigationSymbol ="  ; " navigationSymbolFontFamily =" FontAwesome" ></wizard-step >
161161```
162162
163163#### \[ canEnter\]
@@ -181,7 +181,7 @@ It then returns true, when the step change should succeed and false otherwise.
181181If you need to call a function to do some initialisation work before entering a wizard step you can add a ` stepEnter ` attribute to the wizard step environment like this:
182182
183183``` html
184- <wizard-step title =" Second Step" (stepEnter) =" enterSecondStep($event)" ></wizard-step >
184+ <wizard-step stepTitle =" Second Step" (stepEnter) =" enterSecondStep($event)" ></wizard-step >
185185```
186186
187187This leads to the calling of the ` enterSecondStep ` function when the wizard moves to this step.
@@ -201,7 +201,7 @@ Possible `<wizard-step>` parameters:
201201
202202| Parameter name | Possible Values | Default Value |
203203| ----------------------------- | ------------------------------------------------- | ------------- |
204- | [ title ] | string | null |
204+ | [ stepTitle ] | string | null |
205205| [ navigationSymbol] | string | '' |
206206| [ navigationSymbolFontFamily] | string | null |
207207| [ canEnter] | function(MovingDirection): boolean | ; boolean | true |
@@ -225,7 +225,7 @@ Possible `<wizard-completion-step>` parameters:
225225
226226| Parameter name | Possible Values | Default Value |
227227| ----------------------------- | ------------------------------------------------- | ------------- |
228- | [ title ] | string | null |
228+ | [ stepTitle ] | string | null |
229229| [ navigationSymbol] | string | '' |
230230| [ navigationSymbolFontFamily] | string | null |
231231| [ canEnter] | function(MovingDirection): boolean | ; boolean | true |
@@ -250,7 +250,7 @@ Possible `[enableBackLinks]` parameters:
250250
251251
252252### \[ wizardStepTitle\]
253- Sometimes it's not enough to define a title with the ` title ` attribute in ` <wizard-step> ` and ` <wizard-completion-step> ` .
253+ Sometimes it's not enough to define a title with the ` stepTitle ` attribute in ` <wizard-step> ` and ` <wizard-completion-step> ` .
254254One example for such a case is, if the title should be written in another font.
255255Another example would be if it's desired that the title should be choosen depending on the available width of your screen or window.
256256In such cases you may want to specify the html for the title of a wizard step yourself.
@@ -270,12 +270,14 @@ Be aware, that you can only use `[wizardStepTitle]` together with Angular, becau
270270### \[ optionalStep\]
271271If you need to define an optional step, that doesn't need to be done to continue to the next steps, you can define an optional step
272272by adding the ` optionalStep ` directive to the step you want to declare as optional.
273+ To add the ` optionalStep ` directive to a wizard step, you can either add ` optional ` or ` optionalStep ` to the step definition.
273274
274- ### \[ selected \]
275+ ### \[ selectedStep \]
275276In some cases it may be a better choice to set the default wizard step not via a static number.
276- Another way to set the default wizard step is by using the ` selected ` directive.
277- When attaching the ` selected ` directive to an arbitrary wizard step, it will be marked as the default wizard step,
277+ Another way to set the default wizard step is by using the ` selectedStep ` directive.
278+ When attaching the ` selectedStep ` directive to an arbitrary wizard step, it will be marked as the default wizard step,
278279which is shown directly after the wizard startup.
280+ To add the ` selectedStep ` directive to a wizard step, you can either add ` selected ` or ` selectedStep ` to the step definition.
279281
280282### \[ goToStep\]
281283` ng2-archwizard ` has three directives, that allow moving between steps.
@@ -363,11 +365,11 @@ This can be done by defining adding the `[wizardStep]` directive to the componen
363365
364366``` html
365367<wizard >
366- <wizard-step title =" Steptitle 1" >
368+ <wizard-step stepTitle =" Steptitle 1" >
367369 Step 1
368370 </wizard-step >
369- <custom-step wizardStep title =" Steptitle 2" ></custom-step >
370- <wizard-step title =" Steptitle 3" >
371+ <custom-step wizardStep stepTitle =" Steptitle 2" ></custom-step >
372+ <wizard-step stepTitle =" Steptitle 3" >
371373 Step 3
372374 </wizard-step >
373375</wizard >
@@ -378,7 +380,7 @@ Possible `[wizardStep]` parameters:
378380
379381| Parameter name | Possible Values | Default Value |
380382| ----------------------------- | ------------------------------------------------- | ------------- |
381- | [ title ] | string | null |
383+ | [ stepTitle ] | string | null |
382384| [ navigationSymbol] | string | '' |
383385| [ navigationSymbolFontFamily] | string | null |
384386| [ canEnter] | function(MovingDirection): boolean | ; boolean | true |
@@ -394,10 +396,10 @@ that contains the wizard completion step.
394396
395397``` html
396398<wizard >
397- <wizard-step title =" Steptitle 1" >
399+ <wizard-step stepTitle =" Steptitle 1" >
398400 Step 1
399401 </wizard-step >
400- <custom-step wizardCompletionStep title =" Completion steptitle" >
402+ <custom-step wizardCompletionStep stepTitle =" Completion steptitle" >
401403 </custom-step >
402404</wizard >
403405```
@@ -407,7 +409,7 @@ Possible `[wizardCompletionStep]` parameters:
407409
408410| Parameter name | Possible Values | Default Value |
409411| ----------------------------- | ------------------------------------------------- | ------------- |
410- | [ title ] | string | null |
412+ | [ stepTitle ] | string | null |
411413| [ navigationSymbol] | string | '' |
412414| [ navigationSymbolFontFamily] | string | null |
413415| [ canEnter] | function(MovingDirection): boolean | ; boolean | true |
0 commit comments