F
Filament16mo ago
MRBUG

clickable widget

can anyone tell me how to redirect admin to go any table using the widgets of given in Dashboard like if i have a widget "total Posts" if we click it it will go to Posts Table. How can we archive This functoinallity?
No description
Solution:
can you tell me how add css property in action button in resources/createpage Actions\CreateAction::make() ->label('create')...
Jump to solution
10 Replies
LeandroFerreira
LeandroFerreira16mo ago
I think the widget has a ->url() method. You could use it to redirect..
MRBUG
MRBUGOP16mo ago
yes it has but i dont know how to redirect can you please make a function here is the link of the filamentWidget https://filamentphp.com/docs/3.x/widgets/stats-overview#adding-extra-html-attributes-to-a-stat
LeandroFerreira
LeandroFerreira16mo ago
would you like to redirect to a resource? Index page?
MRBUG
MRBUGOP16mo ago
yes sir.
seetakanta
seetakanta16mo ago
hii sir
Solution
seetakanta
seetakanta16mo ago
can you tell me how add css property in action button in resources/createpage Actions\CreateAction::make() ->label('create') ->extraAttributes([ 'class' => 'float-right', ]), this is my code i want that button float in right for that i write class float-right but it doesnot work
MRBUG
MRBUGOP16mo ago
wait i will tell you
seetakanta
seetakanta16mo ago
thank you
LeandroFerreira
LeandroFerreira16mo ago
->url(YourResource::getUrl())
->url(YourResource::getUrl())
MRBUG
MRBUGOP16mo ago
thank you sir

Did you find this page helpful?