21 lines
559 B
PHP
21 lines
559 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
return gridFilterSchema([
|
||
|
|
'query' => [
|
||
|
|
'search' => ['type' => 'string'],
|
||
|
|
'limit' => ['type' => 'int', 'default' => 10, 'min' => 1, 'max' => 100],
|
||
|
|
'offset' => ['type' => 'int', 'default' => 0, 'min' => 0],
|
||
|
|
],
|
||
|
|
'toolbar' => [
|
||
|
|
[
|
||
|
|
'key' => 'search',
|
||
|
|
'type' => 'text',
|
||
|
|
'label' => 'Search',
|
||
|
|
'placeholder' => 'Search...',
|
||
|
|
'input_id' => 'search-results-input',
|
||
|
|
'search' => true,
|
||
|
|
'query' => ['type' => 'string'],
|
||
|
|
],
|
||
|
|
],
|
||
|
|
]);
|