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

Table Filter可以实现Server端查询吗

Open neozhu opened this issue 11 years ago • 1 comments

如何通过ajax 传递参数到服务器端查询

neozhu avatar Nov 17 '14 06:11 neozhu

hi @neozhu,

I believe your question is about how to pass filter arguments to the server. If you connect the filter to the bootstrap table (connectTo option) and the table is using server as a data source (url option of the bootstrap-table), the the filter should automatically set new url of the data source when filter is applied. The new URL contains attribute filter with all settings.

Please check http://plnkr.co/edit/XA0kUc?p=preview . If you inspect the page and check the requests, every time you apply the filter there is a ajax request to the static json file (the server side logic is not implemented so the filtering is not working in this example)

lukaskral avatar Nov 17 '14 13:11 lukaskral