-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs update: pagination slot #3868
Conversation
@@ -509,6 +509,11 @@ export default [ | |||
description: 'Custom top-left (opposite side of top pagination)', | |||
props: '—' | |||
}, | |||
{ | |||
name: '<code>pagination</code>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OlegKlochkov I thought this was already in the docs. And I don't believe there is a prop called pagination
for the table component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wesdevpro I think this PR is relevant, because pagination
is not a prop but a named slot that BTable
actually has:
buefy/src/components/table/Table.vue
Lines 23 to 44 in fb73795
<slot name="pagination"> | |
<b-table-pagination | |
v-bind="$attrs" | |
:per-page="perPage" | |
:paginated="paginated" | |
:rounded="paginationRounded" | |
:icon-pack="iconPack" | |
:total="newDataTotal" | |
:current-page.sync="newCurrentPage" | |
:aria-next-label="ariaNextLabel" | |
:aria-previous-label="ariaPreviousLabel" | |
:aria-page-label="ariaPageLabel" | |
:aria-current-label="ariaCurrentLabel" | |
@page-change="(event) => $emit('page-change', event)" | |
:page-input="pageInput" | |
:pagination-order="paginationOrder" | |
:page-input-position="pageInputPosition" | |
:debounce-page-input="debouncePageInput" | |
> | |
<slot name="top-left"/> | |
</b-table-pagination> | |
</slot> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do see that now on line 23.
Closing this PR because it has been stale for a while. Feel free to open a PR and communicate. Thanks |
Proposed Changes