我的数据表很大,并且正在使用引导程序数据表过滤器进行搜索。但是当我搜索“文本”或“数字”时,它仅过滤第一页。但是我有250多个页面。我尝试一切,但无济于事,该怎么办?
这是我的代码
<table data-toggle="table"
data-show-columns="true"
data-page-list="[10, 20, 50]"
data-page-size="20"
data-sort-name="sort"
data-smart-display="true"
data-search="true"
data-search-align="left"
data-buttons-align="right"
data-pagination="true"
data-show-pagination-switch="true"
class="table-bordered"
id="myTable">
<thead>
<tr>
<th data-field="id" data-switchable="false">ID</th>
<th data-field="name" data-sortable="true">section1</th>
<th data-field="name" data-sortable="true">section2</th>
<th data-field="name3" data-sortable="true">section3</th>
<th data-field="category" data-sortable="true">section4</th>
<th data-field="price" data-sortable="true">section5</th>
<th data-field="action" class="text-right">section6</th>
</tr>
</thead>
<tbody>
@foreach ($product as $prd)
<tr>
<td>{{ $prd['ProductId'] }}</td>
<td>{{ $prd['ProductName'] }}</td>
<td>{{ $prd['ProductName2'] }}</td>
<td>{{ $prd['ProductName3'] }}</td>
<td>{{ $prd->productType->CategoryName }}</td>
<td>{{ number_format($prd['ProductPrice'],2,'.',',') }}</td>
<td>
<a href="{{ url('admin/packets/' . $prd['ProductId'] . '/edit') }}"><button class="btn btn-icon waves-effect waves-light btn-warning"> <i class="fa fa-pencil"></i> </button></a>
</td>
</tr>
@endforeach
</tbody>
</table>
{{$product->links()}}
</div>