Skip to content

added option to show dropdown in pagination - #1467

Open
bastiedotorg wants to merge 2 commits into
grid-js:masterfrom
bastiedotorg:feature/add_pagination_dropdown
Open

bastiedotorg wants to merge 2 commits into
grid-js:masterfrom
bastiedotorg:feature/add_pagination_dropdown

Conversation

@bastiedotorg

Copy link
Copy Markdown

this feature adds an optional dropdown in pagination by setting

showDropdown: true,

    const grid = new gridjs.Grid({
        autoWidth: false,
        className: {
            table: 'table table-striped w-100 table-responsive'
        },
        columns: columns,
        search: localOnly ? {enabled: true} : search,
        pagination: localOnly ? {enabled: true,} : {
            limit: 10,
            server: {
                url: (prev, page, limit) => `${prev}&limit=${limit}&page=${page + 1}`
            },
            showDropdown: true,
        },
});

@bastiedotorg

Copy link
Copy Markdown
Author

what does it do? it provides a dropdownbox like this:
grafik

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant