Skip to content

Conversation

bastiedotorg
Copy link

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
Author

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant