Issue #1232, default item in perpage and label of perpage
This commit is contained in:
parent
2d1afb988a
commit
2f8e319fb0
|
|
@ -17,7 +17,7 @@ class ProductDataGrid extends DataGrid
|
|||
|
||||
protected $index = 'product_id';
|
||||
|
||||
protected $itemsPerPage = 20;
|
||||
protected $itemsPerPage = 10;
|
||||
|
||||
public function prepareQueryBuilder()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ abstract class DataGrid
|
|||
/**
|
||||
* If paginated then value of pagination.
|
||||
*/
|
||||
protected $itemsPerPage = 15;
|
||||
protected $itemsPerPage = 10;
|
||||
|
||||
protected $operators = [
|
||||
'eq' => "=",
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue