Ostap Brehin πŸ‡ΊπŸ‡¦
Ostap Brehin πŸ‡ΊπŸ‡¦
Explore posts from servers
FFilament
Created by Ostap Brehin πŸ‡ΊπŸ‡¦ on 12/24/2023 in #β“β”Šhelp
Table action that opens a modal with a table inside? (how to use `->table` on an action?)
I'm trying to make an action that would open a table with relationship items for viewing. I found the ->table method on the table Action class, but I'm not sure how to pass a table to it.
Tables\Actions\Action::make('View executions')
->table(Table::make(/* I'm not sure what to pass here, but it is required */)->columns([
// columns for a relationship items
])),
Tables\Actions\Action::make('View executions')
->table(Table::make(/* I'm not sure what to pass here, but it is required */)->columns([
// columns for a relationship items
])),
Any ideas? Thank you.
4 replies
FFilament
Created by Ostap Brehin πŸ‡ΊπŸ‡¦ on 12/23/2023 in #β“β”Šhelp
Set max width for the resource modal (ManageRecords made via ` --simple`)
Is there a way to set the max width for the "create" modal?
namespace App\Filament\Resources\TaskResource\Pages;

use App\Filament\Resources\TaskResource;
use Filament\Actions;
use Filament\Resources\Pages\ManageRecords;

class ManageTasks extends ManageRecords
{
protected static string $resource = TaskResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
namespace App\Filament\Resources\TaskResource\Pages;

use App\Filament\Resources\TaskResource;
use Filament\Actions;
use Filament\Resources\Pages\ManageRecords;

class ManageTasks extends ManageRecords
{
protected static string $resource = TaskResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
5 replies