F
Filament14mo 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
LeandroFerreira14mo ago
I think the widget has a ->url() method. You could use it to redirect..
MRBUG
MRBUGOP14mo 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
LeandroFerreira14mo ago
would you like to redirect to a resource? Index page?
MRBUG
MRBUGOP14mo ago
yes sir.
seetakanta
seetakanta14mo ago
hii sir
Solution
seetakanta
seetakanta14mo 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
MRBUGOP14mo ago
wait i will tell you
seetakanta
seetakanta14mo ago
thank you
LeandroFerreira
LeandroFerreira14mo ago
->url(YourResource::getUrl())
->url(YourResource::getUrl())
MRBUG
MRBUGOP14mo ago
thank you sir
Want results from more Discord servers?
Add your server