Skip to content

Commit

Permalink
#7713 for DataView
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jun 3, 2019
1 parent 49487b4 commit 8b828d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/components/dataview/dataview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {BlockableUI} from '../common/blockableui';
</div>
<p-paginator [rows]="rows" [first]="first" [totalRecords]="totalRecords" [pageLinkSize]="pageLinks" [alwaysShow]="alwaysShowPaginator"
(onPageChange)="paginate($event)" styleClass="ui-paginator-top" [rowsPerPageOptions]="rowsPerPageOptions" *ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition =='both')"
[dropdownAppendTo]="paginatorDropdownAppendTo" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
[dropdownAppendTo]="paginatorDropdownAppendTo" [dropdownScrollHeight]="paginatorDropdownScrollHeight" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
[currentPageReportTemplate]="currentPageReportTemplate" [showCurrentPageReport]="showCurrentPageReport"></p-paginator>
<div class="ui-dataview-content ui-widget-content">
<div class="ui-g">
Expand All @@ -30,7 +30,7 @@ import {BlockableUI} from '../common/blockableui';
</div>
<p-paginator [rows]="rows" [first]="first" [totalRecords]="totalRecords" [pageLinkSize]="pageLinks" [alwaysShow]="alwaysShowPaginator"
(onPageChange)="paginate($event)" styleClass="ui-paginator-bottom" [rowsPerPageOptions]="rowsPerPageOptions" *ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition =='both')"
[dropdownAppendTo]="paginatorDropdownAppendTo" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
[dropdownAppendTo]="paginatorDropdownAppendTo" [dropdownScrollHeight]="paginatorDropdownScrollHeight" [templateLeft]="paginatorLeftTemplate" [templateRight]="paginatorRightTemplate"
[currentPageReportTemplate]="currentPageReportTemplate" [showCurrentPageReport]="showCurrentPageReport"></p-paginator>
<div class="ui-dataview-footer ui-widget-header ui-corner-bottom" *ngIf="footer">
<ng-content select="p-footer"></ng-content>
Expand Down Expand Up @@ -58,6 +58,8 @@ export class DataView implements OnInit,AfterContentInit,BlockableUI {

@Input() paginatorDropdownAppendTo: any;

@Input() paginatorDropdownScrollHeight: string;

@Input() currentPageReportTemplate: string = '{currentPage} of {totalPages}';

@Input() showCurrentPageReport: boolean;
Expand Down
6 changes: 6 additions & 0 deletions src/app/showcase/components/dataview/dataviewdemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ <h3>Properties</h3>
<td>null</td>
<td>Target element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element.</td>
</tr>
<tr>
<td>paginatorDropdownScrollHeight</td>
<td>string</td>
<td>200px</td>
<td>Paginator dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.</td>
</tr>
<tr>
<td>currentPageReportTemplate</td>
<td>string</td>
Expand Down
2 changes: 1 addition & 1 deletion src/app/showcase/components/table/tabledemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ <h3>Properties</h3>
<tr>
<td>paginatorDropdownScrollHeight</td>
<td>string</td>
<td>null</td>
<td>200px</td>
<td>Paginator dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.</td>
</tr>
<tr>
Expand Down

0 comments on commit 8b828d7

Please sign in to comment.