Toggle multiple select

Hello

Do you know any way to achieve this:

I have a list of items. A click on one item triggers an action.

I want a toggle to „activate“ multiple selects. When the toggle is activated, the user can select multiple items of the list. If the toggle (now with save icon) is pressed again, the action is triggered for all selected items.

Can you suggest me a solution?

Thank you!