-
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.
chore: don't accept string as number input
refs #550 BREAKING CHANGE: number inputs in pagination could previously be set as strings. The values passed were transformed to numbers if necessary and rounded to integers. This is not supported anymore. All number inputs should now consistently be set as number, using the syntax `[attr]="value"` (for example: `<ngb-pagination [pageSize]="20" ...></ngb-pagination>` instead of `<ngb-pagination pageSize="20" ...></ngb-pagination>`), and rounding is not applied anymore. Closes #560
- Loading branch information
1 parent
0675e67
commit f49fb08
Showing
7 changed files
with
42 additions
and
68 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
demo/src/app/components/pagination/demos/advanced/pagination-advanced.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
6 changes: 3 additions & 3 deletions
6
demo/src/app/components/pagination/demos/basic/pagination-basic.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
8 changes: 4 additions & 4 deletions
8
demo/src/app/components/progressbar/demos/basic/progressbar-basic.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ngb-progressbar type="success" value="25"></ngb-progressbar> | ||
<ngb-progressbar type="info" value="50"></ngb-progressbar> | ||
<ngb-progressbar type="warning" value="75"></ngb-progressbar> | ||
<ngb-progressbar type="danger" value="100"></ngb-progressbar> | ||
<ngb-progressbar type="success" [value]="25"></ngb-progressbar> | ||
<ngb-progressbar type="info" [value]="50"></ngb-progressbar> | ||
<ngb-progressbar type="warning" [value]="75"></ngb-progressbar> | ||
<ngb-progressbar type="danger" [value]="100"></ngb-progressbar> |
8 changes: 4 additions & 4 deletions
8
demo/src/app/components/progressbar/demos/striped/progressbar-striped.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ngb-progressbar type="success" value="25" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="info" value="50" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="warning" value="75" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="danger" value="100" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="success" [value]="25" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="info" [value]="50" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="warning" [value]="75" [striped]="true"></ngb-progressbar> | ||
<ngb-progressbar type="danger" [value]="100" [striped]="true"></ngb-progressbar> |
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