Need to hide and show the listview based on clicking of a button

0
Hi experts I need to have a list view which is visible on clicking of the Show Option button and it should also hide on clicking of hide option button.   Show option button and hide option button should also change dynamically. I have attached the screeshot as well. Please help me with details as I am new to it. Thanks in advance.   Hide option: I have a list view to show
asked
1 answers
0

Hi Harsh Bhanushali,

Create a Boolean attribute (e.g., IsListVisible) to control visibility.

Add two Button widgets ("Show Order" and "Hide Order").

Show Button: On click, set IsListVisible to true (to show the List View).

Hide Button: On click, set IsListVisible to false (to hide the List View).

Use Conditional Visibility: Set the List View to show/hide based on IsListVisible.

Show "Show Order" when IsListVisible = false, and "Hide Order" when IsListVisible = true.

answered