Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I create a "Completion message" after performing a bulk action #154

Open
mlewis-everley opened this issue Dec 9, 2017 · 2 comments
Open

Comments

@mlewis-everley
Copy link
Contributor

I have looked through the docs and the source code and cannot see how to do this. Something like "Changed X records" would be fine?

I am currently using bulk manager for SS4.

@colymba
Copy link
Owner

colymba commented Dec 11, 2017

I thought there was something like that implemented, but it's been a while so I guess maybe not 😞
Looking through the JS there were the option to pass a callback function that would be called after the bulk action is done (https://github.com/colymba/GridFieldBulkEditingTools/blob/master/bulkManager/javascript/GridFieldBulkManager.js#L174), but seems it's not implemented...

you could override the onclick function of $('.doBulkActionButton'), changing this.doBulkAction(action, ids); to this.doBulkAction(action, ids, bulkActionFinishedFunction, this); or similar, and bulkActionFinishedFunction should be called once the action has been performed.

@colymba
Copy link
Owner

colymba commented Mar 6, 2018

In light of all the work done with the SS4 compatibility, and mainly moving all configs on the handlers themselves, this will be implemented somehow in the handler response.

I have plans to create a unified way of how all the bulk tools return json response, and a message would be included along with all the modification data...

Stay tuned..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants