Compare commits
3 Commits
d3cda0bd8f
...
0.4.5
Author | SHA1 | Date | |
---|---|---|---|
13b54a563d | |||
a3b5f5fa0c | |||
708045664c |
6
composer.lock
generated
6
composer.lock
generated
@ -8,11 +8,11 @@
|
||||
"packages": [
|
||||
{
|
||||
"name": "itguild/tables",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://git.itguild.info/ItGuild/tables",
|
||||
"reference": "1f2b93baf1835191733ed8d5ed0650bdad2e058d"
|
||||
"reference": "ad18d94489c20599ac1080a8b4f7f3199f206fdf"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
@ -30,7 +30,7 @@
|
||||
"email": "apuc06@mail.ru"
|
||||
}
|
||||
],
|
||||
"time": "2024-08-29T09:41:17+00:00"
|
||||
"time": "2024-08-29T10:13:51+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
|
@ -44,7 +44,8 @@ try {
|
||||
'currentPage' => 1,
|
||||
'perPage' => 3,
|
||||
'params' => ["class" => "table table-bordered", "border" => "2"],
|
||||
'baseUrl' => "/admin/user"
|
||||
'baseUrl' => "/admin/user",
|
||||
'filters' => ["email"]
|
||||
]));
|
||||
$table->columns([
|
||||
'username' => [
|
||||
|
@ -48,6 +48,8 @@ class EloquentDataProvider
|
||||
$this->meta['baseUrl'] = $options['baseUrl'] ?? $model->table;
|
||||
$this->meta['params'] = $options['params'] ?? [];
|
||||
$this->meta['actions'] = $options['actions'] ?? [];
|
||||
$this->meta['searchPrefix'] = $options['searchPrefix'] ?? '/search';
|
||||
$this->meta['showFiltersRow'] = $options['showFiltersRow'] ?? true;
|
||||
$this->filters = $options['filters'] ?? [];
|
||||
$this->createQuery();
|
||||
$this->jsonStr = (new JSONCreator($this->meta, $this->getCollection()->toArray(), $this->filters,))->getJson();
|
||||
|
Reference in New Issue
Block a user