|
9 | 9 | * The basic structure should be: |
10 | 10 | * <pre> |
11 | 11 | * <div pf-wizard> |
12 | | - * <div pf-wizard-step> |
| 12 | + * <pf-wizard-step> |
13 | 13 | * <pf-wizard-substep><!-- content here --></pf-wizard-substep> |
14 | 14 | * <pf-wizard-substep><!-- content here --></pf-wizard-substep> |
15 | | - * </div> |
16 | | - * <div pf-wizard-step><!-- additional configuration can be added here with substeps if desired --></div> |
17 | | - * <div pf-wizard-step><!-- review steps and final command here --></div> |
| 15 | + * </pf-wizard-step> |
| 16 | + * <pf-wizard-step><!-- additional configuration can be added here with substeps if desired --></pf-wizard-step> |
| 17 | + * <pf-wizard-step><!-- review steps and final command here --></pf-wizard-step> |
18 | 18 | * </div> |
19 | 19 | * </pre> |
20 | 20 | * |
|
53 | 53 | wizard-done="deployComplete || deployInProgress" |
54 | 54 | content-height="'600px'" |
55 | 55 | loading-secondary-information="secondaryLoadInformation"> |
56 | | - <div pf-wizard-step step-title="First Step" substeps="true" step-id="details" step-priority="0" show-review="true" show-review-details="true"> |
| 56 | + <pf-wizard-step step-title="First Step" substeps="true" step-id="details" step-priority="0" show-review="true" show-review-details="true"> |
57 | 57 | <div ng-include="'detail-page.html'"> |
58 | 58 | </div> |
59 | 59 | <pf-wizard-substep step-title="Details - Extra" next-enabled="true" step-id="details-extra" step-priority="1" show-review="true" show-review-details="true" review-template="review-second-template.html"> |
|
66 | 66 | </div> |
67 | 67 | </form> |
68 | 68 | </pf-wizard-substep> |
69 | | - </div> |
70 | | - <div pf-wizard-step step-title="Second Step" substeps="false" step-id="configuration" step-priority="1" show-review="true" review-template="review-second-template.html" > |
| 69 | + </pf-wizard-step> |
| 70 | + <pf-wizard-step step-title="Second Step" substeps="false" step-id="configuration" step-priority="1" show-review="true" review-template="review-second-template.html" > |
71 | 71 | <form class="form-horizontal"> |
72 | 72 | <h3>Wizards should make use of substeps consistently throughout (either using them or not using them). This is an example only.</h3> |
73 | 73 | <div pf-form-group pf-label="Lorem"> |
|
77 | 77 | <input id="new-ipsum" name="ipsum" ng-model="data.ipsum" type="text" /> |
78 | 78 | </div> |
79 | 79 | </form> |
80 | | - </div> |
81 | | - <div pf-wizard-step step-title="Review" substeps="true" step-id="review" step-priority="2"> |
| 80 | + </pf-wizard-step> |
| 81 | + <pf-wizard-step step-title="Review" substeps="true" step-id="review" step-priority="2"> |
82 | 82 | <div ng-include="'summary.html'"></div> |
83 | 83 | <div ng-include="'deployment.html'"></div> |
84 | | - </div> |
| 84 | + </pf-wizard-step> |
85 | 85 | </div> |
86 | 86 | </file> |
87 | 87 | <file name="detail-page.html"> |
@@ -519,6 +519,10 @@ angular.module('patternfly.wizard').directive('pfWizard', function ($window) { |
519 | 519 | } |
520 | 520 | }; |
521 | 521 |
|
| 522 | + this.setPageSelected = function (step) { |
| 523 | + $scope.$emit('wizard:stepChanged', {step: step, index: stepIdx( step )}); |
| 524 | + }; |
| 525 | + |
522 | 526 | this.addStep = function (step) { |
523 | 527 | // Insert the step into step array |
524 | 528 | var insertBefore = _.find($scope.steps, function (nextStep) { |
|
0 commit comments