Cinder Table Bulk Action

Hello, first of all sorry for my broken English :folded_hands:

I’m exploring the Cinder GitHub - sevenseacat/cinder at v0.12.1 · GitHub for rendering collection. On the bulk action we can provide function for action for processing the bulk rows. The function receive query and opts.

My Questions:

  1. currently other the selected row i need to provide some additional data, e.g. email or date prompted by user. my current solution is to pass the function to open a modal dialog and return {:ok, :noop} and also store the query received to socket assigns. when user submit the form in modal dialog then i process the bulk data. is there any more efficient way to do this right now?
  2. since the bulk action call my custom function it receives query, but in my bulk process i only need to access the selected row resource id, i checked the documentation Advanced Features — Cinder v0.12.1 we can access selection context but only on the slot, is there anyway to access this value also from custom bulk action function? currently my workaround is just query select the id. Another workaround suggested by claude is to use selection_changed to maintain selected rows.

Thank you