Crud and loader/progressbar #906
-
I've a bkp6/lv11 crud where i've a button that call a function that send emails Thanks for help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey @blondie63 , Not now. We had in times a loader in Backpack. But we never used it and were not really happy about it's looks, so I think we removed it last version. Happy to brainstorm in some suggestions. I think the biggest problem we had at the time, is that sometimes the loader looks better as a full page loader, other times having a load in button was better (like we have in inline create button). We didn't find something we can generally use, so we always endup creating loaders to fit our needs. Maybe it's time to revisit that 🤷♂️ In the meanwhile you can check the source of Inline Create button, I think when you save the entry, it shows you a loading indicator in the button. Cheers |
Beta Was this translation helpful? Give feedback.
Yes, you have to create a custom button for it and call the operation as Ajax requests.
You can take a look at delete button for reference
vendor/backpack/crud/src/resources/views/crud/buttons/delete.blade.php
. This sends an Ajax request.
You can copy its definition and create a new button with the following:
Now, Modify it and use it per your need.