-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stepper): add disable step navigation setting (#1155)
Closes #902
- Loading branch information
Showing
7 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/playground/with-layout/stepper/stepper-disabled-step-nav.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
template: ` | ||
<nb-card> | ||
<nb-card-body> | ||
<nb-stepper orientation="horizontal" disableStepNavigation> | ||
<nb-step [label]="labelOne"> | ||
<ng-template #labelOne>First step</ng-template> | ||
<h3>Step content #1</h3> | ||
<button nbButton disabled nbStepperNext>prev</button> | ||
<button nbButton nbStepperNext>next</button> | ||
</nb-step> | ||
<nb-step [label]="labelTwo"> | ||
<ng-template #labelTwo>Second step</ng-template> | ||
<h3>Step content #2</h3> | ||
<button nbButton nbStepperPrevious>prev</button> | ||
<button nbButton nbStepperNext>next</button> | ||
</nb-step> | ||
<nb-step label="Third step"> | ||
<h3>Step content #3</h3> | ||
<button nbButton nbStepperPrevious>prev</button> | ||
<button nbButton nbStepperNext>next</button> | ||
</nb-step> | ||
<nb-step [label]="labelFour"> | ||
<ng-template #labelFour>Fourth step</ng-template> | ||
<h3>Step content #4</h3> | ||
<button nbButton nbStepperPrevious>prev</button> | ||
<button nbButton disabled nbStepperNext>next</button> | ||
</nb-step> | ||
</nb-stepper> | ||
</nb-card-body> | ||
</nb-card> | ||
`, | ||
}) | ||
export class StepperDisabledStepNavComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters