As I work on designing a user interface for managing project applications, one of the key functionalities is the ability to filter applications by their type. Within the UI, there is a prominent button labeled select ALL which, when clicked, is meant to select all filtered applications based on the application type criteria set.
For instance, let's consider a Test project with applications APP1, App2, App3, App4, and App5. After applying a filter, let's say we see only App1, App3, and App4. When the select All button is pressed, the intention is for it to exclusively select these three applications while excluding App2 and App5.
In order to handle this filtering functionality, I have implemented a .filter
module within my codebase. The action triggered by selecting the All button is tied to a method called selectAllApp() located in the controller. How can I effectively communicate the list of currently filtered applications from the view to the controller for proper selection handling?