Permalink
Browse files

update explanation of disabling pagination and sorting

  • Loading branch information...
sarjon committed Dec 11, 2018
1 parent 919acac commit 93c8f90a6fc5291cf9b0efee728e4d836e524840
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/content/1.7/development/components/grid/_index.md
@@ -162,8 +162,8 @@ $searchCriteria->getLimit(); // 10
Class `PrestaShop\PrestaShop\Core\Grid\Search\SearchCriteria` is only available since {{< minver v="1.7.6" >}}
{{% /notice %}}

When creating Search Criteria you can skip some or all it's data. You can leave default `null` values for order way
and order by to disable sorting or offset and limit to disable pagination.
When creating Search Criteria you can skip some or all it's data. If you set both `orderWay` and `orderBy` to `null`
it will disable sorting. If you set both `offset` and `limit` to `null` it will disable pagination.

```php
use PrestaShop\PrestaShop\Core\Grid\Search\SearchCriteria;

0 comments on commit 93c8f90

Please sign in to comment.