bootstrap-table icon indicating copy to clipboard operation
bootstrap-table copied to clipboard

Custom parameters with AddrBar

Open codethisio opened this issue 1 year ago • 2 comments

Description

Hello,

Is it possible to use AddBar with custom parameters? I have a multi-select with filter options that I use to update the table using server-side pagination. The table refreshes with the correct filtered data. However, the URL does not update with the custom selected filter parameters.

I also tried updating the URL parameters manually, but when the grid refreshes, it overwrites the parameters.

I use this function to update the table and force a refresh:

Tables.UpdateQueryParams = function (customParams) {
    Tables.TableElement.bootstrapTable("refreshOptions", {
        queryParams: function (params) {
            return $.extend(params, customParams);
        }
    });
};

Thanks for your help.

image

codethisio avatar Apr 20 '24 20:04 codethisio

This feature is not currently supported in the extension but may be available as a new feature.

wenzhixin avatar Apr 23 '24 00:04 wenzhixin

I use this function to update the table and force a refresh:

Thank you for the confirmation!

codethisio avatar Apr 23 '24 00:04 codethisio