how can i "check all" checkboxes and then perform an action?

Hi,

I have the following scenario:

  • I have created a ViewList that queries the "users" Collection. The view list item includes, among other widgets, a checkbox.

  • I have added a "select all" checkbox (outside the viewlist) which is meant to select all users with a single action.

  • Below the viewlist widget, there is a row containing a button that reads "send notification". Clicking this button should open a bottom sheet that contains a notification component. This component will send the notification to all users whose checkbox is checked.

Now, I have a couple of questions:

  1. If I have a "select all" checkbox, how can I make it select all checkboxes?

  2. How can I make the notification component send the message to the selected users?

Thanks for your time (and patience) :-)

3 replies