FilamentF
Filament3y ago
2 replies
alcmz

Open a Edit Page from Widgets through Dashboard View

I'm trying to open the selected data from a Dashboard to the Edit page of the fetched data . I've been trying to use the following, but not pretty sure how do i do it:
    protected function getTableActions(): array
{
    return [
        Tables\Actions\EditAction::make()
        ->url(route(/**not sure*/))
    ];

}


i do also think that we might be able to call the routes just from the Resource pages as it has already pre-defined:
    public static function getPages(): array
    {
        return [
            'index' => Pages\ListTradingprofiles::route('/'),
            'create' => Pages\CreateTradingprofiles::route('/create'),
            'edit' => Pages\EditTradingprofiles::route('/{record}/edit'),
        ];
    }


couldn't get my fingers around on how to do it . Been looking into google and documentations too
image.png
Was this page helpful?