Issue #1232, default item in perpage and label of perpage

This commit is contained in:
rahul shukla 2019-12-16 18:56:02 +05:30
parent 2d1afb988a
commit 2f8e319fb0
4 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class ProductDataGrid extends DataGrid
protected $index = 'product_id';
protected $itemsPerPage = 20;
protected $itemsPerPage = 10;
public function prepareQueryBuilder()
{

View File

@ -54,7 +54,7 @@
@if (isset($item->additional['attributes']))
<div class="item-options">
@foreach ($item->additional['attributes'] as $attribute)
<b>{{ $attribute['attribute_name'] }} : </b>{{ $attribute['option_label'] }}</br>
@endforeach

View File

@ -91,7 +91,7 @@ abstract class DataGrid
/**
* If paginated then value of pagination.
*/
protected $itemsPerPage = 15;
protected $itemsPerPage = 10;
protected $operators = [
'eq' => "=",

View File

@ -152,6 +152,7 @@
<span class="filter-tag" v-if="filters.length > 0" v-for="filter in filters" style="text-transform: capitalize;">
<span v-if="filter.column == 'sort'">@{{ filter.label }}</span>
<span v-else-if="filter.column == 'search'">Search</span>
<span v-else-if="filter.column == 'perPage'">perPage</span>
<span v-else>@{{ filter.label }}</span>
<span class="wrapper">