Skip to content

Commit d6e0f7b

Browse files
committed
Convert wizard top level directive to component syntax
1 parent 55aceff commit d6e0f7b

File tree

5 files changed

+317
-374
lines changed

5 files changed

+317
-374
lines changed

src/wizard/wizard-step.component.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ angular.module('patternfly.wizard').component('pfWizardStep', {
3434
stepId: '@',
3535
stepPriority: '@',
3636
substeps: '=?',
37-
nextEnabled: '=?',
38-
prevEnabled: '=?',
39-
nextTooltip: '=?',
40-
prevTooltip: '=?',
37+
nextEnabled: '<?',
38+
prevEnabled: '<?',
39+
nextTooltip: '<?',
40+
prevTooltip: '<?',
4141
disabled: '@?wzDisabled',
42-
okToNavAway: '=?',
43-
allowClickNav: '=?',
42+
okToNavAway: '<?',
43+
allowClickNav: '<?',
4444
description: '@',
4545
wizardData: '=',
4646
onShow: '=?',
@@ -311,5 +311,15 @@ angular.module('patternfly.wizard').component('pfWizardStep', {
311311
ctrl.wizard.addStep(ctrl);
312312
ctrl.pageNumber = ctrl.wizard.getStepNumber(ctrl);
313313
};
314+
315+
ctrl.$onChanges = function (changesObj) {
316+
if (changesObj.nextTooltip) {
317+
ctrl.wizard.nextTooltip = changesObj.nextTooltip.currentValue;
318+
}
319+
320+
if (changesObj.prevTooltip) {
321+
ctrl.wizard.prevTooltip = changesObj.prevTooltip.currentValue;
322+
}
323+
};
314324
}
315325
});

0 commit comments

Comments
 (0)