gridjs icon indicating copy to clipboard operation
gridjs copied to clipboard

added option to show dropdown in pagination

Open bastiedotorg opened this issue 7 months ago • 1 comments

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 avatar Jul 24 '24 14:07 bastiedotorg