How to add Option to Bulk Action Menu

I am needing to add an Export Option to the Bulk Actions menu of my Package / Module. I have been looking around the code base an am not finding how its done. I need to basically duplicate what the Accounts module does. It lets you select accounts and then exports them when you click on the Bulk Action Export option.

image

Does have any info on how this can be done. Any videos to watch?

Thanks

Tony

Check out these two gists:

HOWTO: Adding your own ListView action items - Part 1

HOWTO: Adding your own ListView action items - Part 2

Note that you will only get the selection from the current page (20). I don’t know of any way to get the ids of all the pages.