Skip to content
Discussion options

You must be logged in to vote

Hi guys @adamhaley & @fractalbit

... i was wondering that too and got it to work.

Just take advantage of the noty message system backpack is using.
When you intercept the delete you can send back with a return of an array of a specific structure.

$custom_message['error'][0] = 'You super awesome message can go here. Of course you prepared it dynamically via php.';
return $custom_message;    

Instead of using error you can also use success in case it is successful etc..
If you have multiple bubbles you want to show ... just add more by increasing the counter at the end per type.

Here an example for multiple messages:

            $custom_message['error'][0] = 'Red Error Bubble 1';
         …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jcastroa87
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants