question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'queryParams' doesn't work

See original GitHub issue

Bootstraptable version(s) affected: 4.3.1

Description
For example, I want to screen out the data where Gene ID is G1. I used the following code, But it still shows all the data.

`

<script> $(document).ready(function(){ $('#search-table').bootstrapTable({ url:'../trans/Ni.json', pagination:true, search:true, showColumns: true, paginationPreText: "Previous", paginationNextText: "Next", pageSize: 10, pageList: [10, 25, 50, 100], queryParams: function(params) { var temp = { gene_id:'G1'}; return temp; }, columns:[ [ { field:'gene_id', title:'Gene ID', sortable:true, align: 'center', valign:'middle', rowspan:2 }, ... `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
UtechtDustincommented, Mar 20, 2021

@JojoZhangxinye You can write acustom filter algorithm function (using regex) with the filterBy function. Please check the documentation, do you need more help ?

1reaction
wenzhixincommented, Mar 10, 2021

You can use the searchText option: https://live.bootstrap-table.com/code/wenzhixin/6881

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why ActivatedRoute.queryParams is not working in Angular?
I am using routing in my Angular app. I have bellow route in my routing module. { path: 'user/:name', component: UserComponent ...
Read more >
Change of QueryParam not detected · Issue #17609 - GitHub
The merging of the querystring seems to be happening fine but angular does not see it as a route change apparenty. As a...
Read more >
use-query-params - npm
useQueryParams. A React Hook, HOC, and Render Props solution for managing state in URL query parameters with easy serialization. Works with ...
Read more >
Getting Query Params from Angular's Router - Ultimate Courses
In this post you're going to learn how get query params from the URL in Angular by using the router snapshot, and also...
Read more >
RouterLink - Angular
Specify a value here when you do not want to use the default value for ... You can use absolute or relative paths...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found