-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from zyfra/issue-67
fix(components/paginator): fix disabled error
- Loading branch information
Showing
11 changed files
with
119 additions
and
55 deletions.
There are no files selected for viewing
15 changes: 8 additions & 7 deletions
15
...ponents/paginator/examples/paginator-basic-example/paginator-basic-example.component.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,7 +1,8 @@ | ||
<prizm-paginator | ||
[totalRecords]="1560" | ||
[pageLinkSize]="3" | ||
[rows]="10" | ||
[rowsCountOptions]="[5, 10, 20, 30]" | ||
[paginatorOptions]="{ noRowsSelectorLabel: true }" | ||
></prizm-paginator> | ||
<prizm-paginator | ||
[disabled]="disabled" | ||
[totalRecords]="1560" | ||
[pageLinkSize]="3" | ||
[rows]="10" | ||
[rowsCountOptions]="[5, 10, 20, 30]" | ||
[paginatorOptions]="{ noRowsSelectorLabel: true }" | ||
></prizm-paginator> |
20 changes: 11 additions & 9 deletions
20
...omponents/paginator/examples/paginator-basic-example/paginator-basic-example.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'prizm-paginator-basic-example', | ||
templateUrl: './paginator-basic-example.component.html', | ||
styleUrls: ['./paginator-basic-example.component.less'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PaginatorBasicExampleComponent {} | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'prizm-paginator-basic-example', | ||
templateUrl: './paginator-basic-example.component.html', | ||
styleUrls: ['./paginator-basic-example.component.less'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PaginatorBasicExampleComponent { | ||
public disabled = false; | ||
} |
1 change: 1 addition & 0 deletions
1
...s/paginator/examples/paginator-infinite-example/paginator-infinite-example.component.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
20 changes: 11 additions & 9 deletions
20
...nts/paginator/examples/paginator-infinite-example/paginator-infinite-example.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'prizm-paginator-infinite-example', | ||
templateUrl: './paginator-infinite-example.component.html', | ||
styleUrls: ['./paginator-infinite-example.component.less'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PaginatorInfiniteExampleComponent {} | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'prizm-paginator-infinite-example', | ||
templateUrl: './paginator-infinite-example.component.html', | ||
styleUrls: ['./paginator-infinite-example.component.less'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PaginatorInfiniteExampleComponent { | ||
public disabled = false; | ||
} |
21 changes: 11 additions & 10 deletions
21
...nator/examples/paginator-with-labels-example/paginator-with-labels-example.component.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,10 +1,11 @@ | ||
<prizm-paginator | ||
[totalRecords]="160" | ||
[pageLinkSize]="4" | ||
[rows]="10" | ||
[page]="6" | ||
[paginatorOptions]="{ noRowsSelectorLabel: true }" | ||
[rowsCountOptions]="[10, 20, 60]" | ||
leftButtonLabel="Назад" | ||
rightButtonLabel="Вперед" | ||
></prizm-paginator> | ||
<prizm-paginator | ||
[disabled]="disabled" | ||
[totalRecords]="160" | ||
[pageLinkSize]="4" | ||
[rows]="10" | ||
[page]="6" | ||
[paginatorOptions]="{ noRowsSelectorLabel: true }" | ||
[rowsCountOptions]="[10, 20, 60]" | ||
leftButtonLabel="Назад" | ||
rightButtonLabel="Вперед" | ||
></prizm-paginator> |
20 changes: 11 additions & 9 deletions
20
...ginator/examples/paginator-with-labels-example/paginator-with-labels-example.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'prizm-paginator-with-labels-example', | ||
templateUrl: './paginator-with-labels-example.component.html', | ||
styleUrls: ['./paginator-with-labels-example.component.less'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PaginatorWithLabelsExampleComponent {} | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'prizm-paginator-with-labels-example', | ||
templateUrl: './paginator-with-labels-example.component.html', | ||
styleUrls: ['./paginator-with-labels-example.component.less'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PaginatorWithLabelsExampleComponent { | ||
public disabled = false; | ||
} |
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