I a list that is populated from a collection, andns a switch for each row contaicapturing a user's Yes/No input.
To achieve this, I created a switch component. In this component, I have set up two variables in the state: a boolean to capture the switch state, and another to provide a unique name for each item.
Then I bind those variables to the switch as below.
But, Now my problem is when I add this component to the list items there is no way to input switch status.
Is there any other way to configure it?