mirror of
https://github.com/pelican-dev/panel.git
synced 2025-07-12 10:51:07 +02:00
Change table row options (#1220)
It's a known filament issue that large tables are SUPER slow.
This commit is contained in:
parent
566e7c1b24
commit
377b3f170d
@ -31,7 +31,7 @@ class ListActivities extends ListRecords
|
|||||||
$server = Filament::getTenant();
|
$server = Filament::getTenant();
|
||||||
|
|
||||||
return $table
|
return $table
|
||||||
->paginated([25, 50, 100, 250])
|
->paginated([25, 50])
|
||||||
->defaultPaginationPageOption(25)
|
->defaultPaginationPageOption(25)
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('event')
|
TextColumn::make('event')
|
||||||
|
@ -98,8 +98,8 @@ class ListFiles extends ListRecords
|
|||||||
$files = File::get($server, $this->path);
|
$files = File::get($server, $this->path);
|
||||||
|
|
||||||
return $table
|
return $table
|
||||||
->paginated([25, 50, 100, 250])
|
->paginated([25, 50])
|
||||||
->defaultPaginationPageOption(50)
|
->defaultPaginationPageOption(25)
|
||||||
->query(fn () => $files->orderByDesc('is_directory'))
|
->query(fn () => $files->orderByDesc('is_directory'))
|
||||||
->defaultSort('name')
|
->defaultSort('name')
|
||||||
->columns([
|
->columns([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user