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