Paginator updates for DataView
parent
91c7fede14
commit
447773073a
|
@ -10,12 +10,11 @@ const classes = {
|
|||
}
|
||||
],
|
||||
header: 'p-dataview-header',
|
||||
paginatorTop: ({ instance }) => [{ 'p-paginator-top': instance.paginatorTop }],
|
||||
paginator: ({ instance }) => (instance.paginatorTop ? 'p-paginator-top' : instance.paginatorBottom ? 'p-paginator-bottom' : ''),
|
||||
content: 'p-dataview-content',
|
||||
grid: 'p-grid p-nogutter grid grid-nogutter',
|
||||
column: 'p-col col',
|
||||
emptyMessage: 'p-dataview-emptymessage',
|
||||
paginatorBottom: ({ instance }) => [{ 'p-paginator-bottom': instance.paginatorBottom }],
|
||||
footer: 'p-dataview-footer'
|
||||
};
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
:template="paginatorTemplate"
|
||||
:rowsPerPageOptions="rowsPerPageOptions"
|
||||
:currentPageReportTemplate="currentPageReportTemplate"
|
||||
:class="cx('paginatorTop')"
|
||||
:class="cx('paginator')"
|
||||
:alwaysShow="alwaysShowPaginator"
|
||||
@page="onPage($event)"
|
||||
:unstyled="unstyled"
|
||||
|
@ -47,11 +47,11 @@
|
|||
:template="paginatorTemplate"
|
||||
:rowsPerPageOptions="rowsPerPageOptions"
|
||||
:currentPageReportTemplate="currentPageReportTemplate"
|
||||
:class="cx('paginatorBottom')"
|
||||
:class="cx('paginator')"
|
||||
:alwaysShow="alwaysShowPaginator"
|
||||
@page="onPage($event)"
|
||||
:unstyled="unstyled"
|
||||
:pt="ptm('root')"
|
||||
:pt="ptm('paginator')"
|
||||
>
|
||||
<template v-if="$slots.paginatorstart" #start>
|
||||
<slot name="paginatorstart"></slot>
|
||||
|
|
Loading…
Reference in New Issue