-
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(progressbar): add stacked progressbar (#4621)
- Loading branch information
1 parent
8deee2e
commit 1982133
Showing
7 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
demo/src/app/components/progressbar/demos/stacked/progressbar-stacked.html
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,5 @@ | ||
<ngb-progressbar-stacked> | ||
<ngb-progressbar type="danger" [value]="20"></ngb-progressbar> | ||
<ngb-progressbar type="warning" [value]="50"></ngb-progressbar> | ||
<ngb-progressbar type="success" [value]="30"></ngb-progressbar> | ||
</ngb-progressbar-stacked> |
10 changes: 10 additions & 0 deletions
10
demo/src/app/components/progressbar/demos/stacked/progressbar-stacked.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,10 @@ | ||
import { Component } from '@angular/core'; | ||
import { NgbProgressbarModule } from '@ng-bootstrap/ng-bootstrap'; | ||
|
||
@Component({ | ||
selector: 'ngbd-progressbar-stacked', | ||
standalone: true, | ||
imports: [NgbProgressbarModule], | ||
templateUrl: './progressbar-stacked.html', | ||
}) | ||
export class NgbdProgressbarStacked {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { NgbProgressbar } from './progressbar'; | ||
import { NgbProgressbar, NgbProgressbarStacked } from './progressbar'; | ||
|
||
export { NgbProgressbar } from './progressbar'; | ||
export { NgbProgressbar, NgbProgressbarStacked } from './progressbar'; | ||
export { NgbProgressbarConfig } from './progressbar-config'; | ||
|
||
@NgModule({ | ||
imports: [NgbProgressbar], | ||
exports: [NgbProgressbar], | ||
imports: [NgbProgressbar, NgbProgressbarStacked], | ||
exports: [NgbProgressbar, NgbProgressbarStacked], | ||
}) | ||
export class NgbProgressbarModule {} |
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