I want to apply toggle for a block of items. Please help to provide an example for the Toggle configuration
Hi Ammu, you're going to need to provide a bit more information. What exactly do you want this toggle to do? Thanks.
if i want enable toggle functionality for two blocks means how i can achieve that with the toggle component. Could u please help to provide atleast one example with the toggle component. It will be more helpful.
The toggle button is like a checkbox, in so far as its value will be either true or false. So just apply your rule to check the value of the toggle button.
If you have 2 blocks that you want to toggle between then the visibility rules will be as follows:
data.toggleIconButton // First block visibility rule
!data.toggleIconButton // Second block visibility rule