Skip to content

Add a changeable selection for page size to a pagination #6701

@Agnes12180

Description

@Agnes12180

Hi,
I want to add a selection to a pagination in order to change count for per page. I just packaged my own component by using BPagination, but it dosn't work, the content for each page doesn't be updated when change to a new page. If I put the code after the BTable, it works. I wonder if it's a problem to the table ids. I have no idea how to link table id to the pagination ariaControls.
Here is my component.
image
Here is my table.
image

I use [table] as an id to a BTable and as a prop ariaControls and put it into my component, it's invalid, but if I do below change, it works.
image

I don't know if there is already such function in BPagination, so I code it by myself. This function looks like below picture.
image

Could you please take a look? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions