Skip to content

Commit

Permalink
chore(demo): TablePagination deprecate "page" and "size" properties (
Browse files Browse the repository at this point in the history
…#4977)

Co-authored-by: Дондоков Владислав Игоревич <v.dondokov@tinkoff.ru>
  • Loading branch information
VlaskK and Дондоков Владислав Игоревич authored Jul 25, 2023
1 parent f49d10b commit 8d7f673
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
documentationPropertyName="size"
documentationPropertyMode="input"
documentationPropertyType="number"
[documentationPropertyDeprecated]="true"
[(documentationPropertyValue)]="size"
>
Items/Lines per page.
Expand All @@ -79,16 +80,22 @@
<code>items</code>
by default.
</p>
Use
<code>paginationChange</code>
instead
</ng-template>
<ng-template
documentationPropertyName="page"
documentationPropertyMode="input"
documentationPropertyType="number"
[documentationPropertyDeprecated]="true"
[(documentationPropertyValue)]="page"
>
Current page.

<p>Indexing starts at zero.</p>
Use
<code>paginationChange</code>
instead
</ng-template>
<ng-template
documentationPropertyName="items"
Expand All @@ -104,18 +111,25 @@
documentationPropertyName="pageChange"
documentationPropertyMode="output"
documentationPropertyType="number"
[documentationPropertyDeprecated]="true"
>
Emits the selected page when user navigates by spin&nbsp;buttons or selects new size of items per page.
Use
<code>paginationChange</code>
instead
</ng-template>
<ng-template
#documentationPropertySizeChange="documentationProperty"
documentationPropertyName="sizeChange"
documentationPropertyMode="output"
documentationPropertyType="number"
[documentationPropertyDeprecated]="true"
>
Emits the new
<code>size</code>
-property (user selects new amount of lines per page).
-property (user selects new amount of lines per page). Use
<code>paginationChange</code>
instead
</ng-template>
<ng-template
#documentationPropertyPaginationChange="documentationProperty"
Expand Down

0 comments on commit 8d7f673

Please sign in to comment.