-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(progressbar): allow changing progressbar height
- Loading branch information
1 parent
56aab46
commit b329be9
Showing
8 changed files
with
47 additions
and
2 deletions.
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
4 changes: 4 additions & 0 deletions
4
demo/src/app/components/progressbar/demos/height/progressbar-height.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,4 @@ | ||
<p><ngb-progressbar type="success" [value]="25">default</ngb-progressbar></p> | ||
<p><ngb-progressbar type="info" [value]="50" height="10px">10px</ngb-progressbar></p> | ||
<p><ngb-progressbar type="warning" [value]="75" height=".5rem">.5rem</ngb-progressbar></p> | ||
<p><ngb-progressbar type="danger" [value]="100" [height]="height">{{height}}</ngb-progressbar></p> |
14 changes: 14 additions & 0 deletions
14
demo/src/app/components/progressbar/demos/height/progressbar-height.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,14 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ngbd-progressbar-height', | ||
templateUrl: './progressbar-height.html', | ||
styles: [` | ||
ngb-progressbar { | ||
margin-top: 5rem; | ||
} | ||
`] | ||
}) | ||
export class NgbdProgressbarHeight { | ||
height = '20px'; | ||
} |
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
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