Change Action Label from action method
example code
Action::make('test-1')
->label('ChangeMe')
->icon('heroicon-m-sparkles')
->action(function () {
//change label ChangeMe from here?
}),
Solution:Jump to solution
You can't do that. But you can use a dynamic label based on a condition:
...
4 Replies
Solution
You can't do that. But you can use a dynamic label based on a condition:
I'm executing some longer running functions and i was planning on changing the button to something like Please wait... but i guess that will have to do. Thanks
There should be a loading indicator for that case
yeah there is, I just wanted to do some more info for the "blind"