Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom parameters with AddrBar #7288

Open
codethisio opened this issue Apr 20, 2024 · 2 comments
Open

Custom parameters with AddrBar #7288

codethisio opened this issue Apr 20, 2024 · 2 comments
Labels
addrbar Issues for the addrbar extension. feature Issues asking for a new feature to be added, or an existing one to be extended or modified.

Comments

@codethisio
Copy link

codethisio commented Apr 20, 2024

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 codethisio added the help-wanted Issues we need or would love help from the community to resolve. label Apr 20, 2024
@wenzhixin wenzhixin added addrbar Issues for the addrbar extension. feature Issues asking for a new feature to be added, or an existing one to be extended or modified. and removed help-wanted Issues we need or would love help from the community to resolve. labels Apr 23, 2024
@wenzhixin
Copy link
Owner

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

@codethisio
Copy link
Author

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

Thank you for the confirmation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addrbar Issues for the addrbar extension. feature Issues asking for a new feature to be added, or an existing one to be extended or modified.
Projects
None yet
Development

No branches or pull requests

2 participants