Skip to content

Commit f09ff05

Browse files
committed
- Added a field "navBarLocation" to the wizard, that contains the location of the navBar. The location can be either top or bottom
1 parent 979d3fc commit f09ff05

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<div class="wizard-centered">
2-
<wizard-navigation-bar></wizard-navigation-bar>
2+
<wizard-navigation-bar *ngIf="navBarLocation == 'top'"></wizard-navigation-bar>
33

44
<div class="steps">
55
<ng-content></ng-content>
66
</div>
7+
8+
<wizard-navigation-bar *ngIf="navBarLocation == 'bottom'"></wizard-navigation-bar>
79
</div>

src/components/components/wizard.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, ContentChildren, QueryList, AfterContentInit} from "@angular/core";
1+
import {Component, ContentChildren, QueryList, AfterContentInit, Input} from "@angular/core";
22
import {WizardStepComponent} from "./wizard-step.component";
33
import {isNumber} from "util";
44
import {MovingDirection} from "../util/MovingDirection";
@@ -15,6 +15,9 @@ export class WizardComponent implements AfterContentInit {
1515
@ContentChildren(WizardStepComponent)
1616
public wizardSteps: QueryList<WizardStepComponent>;
1717

18+
@Input()
19+
public navBarLocation = "top";
20+
1821
/**
1922
* The index of the currently visible and selected step inside the wizardSteps QueryList.
2023
* If this wizard contains no steps, currentStepIndex is -1

0 commit comments

Comments
 (0)