Malte is right :) I do a bunch of this in file-storage on the oacs-5-1 branch.
First I create a list of bulk actions based on permissions and pass that into the template::list::create call.
I also create the elements block as a list.