Hi all,
How can I show and hide the component (calendar pop up) after the calendar icon is clicked and hide the icon when the calendar icon is again? Thank you

Hi all,
How can I show and hide the component (calendar pop up) after the calendar icon is clicked and hide the icon when the calendar icon is again? Thank you
Hi @Anonymous ,
Do you want to show the calendar by clicking the calendar icon, not show by clicking twice?
You just need to set variable by clicking the calendar icon, then change the calendar's visible based on the variable.
Could you tell me 1)whether the calendar icon and calendar belong to the same component?
2)what does the calendar made of?
Since I do not know your component's settings, I could only make a similar test on my calendar component.
Here's my test for your reference:
calendar icon named TodayIcon
calendar is made of a gallery named MonthDayGallery, a gallery named WeekdayGallery
1)calendar icon and calendar belong to the same component
inside the component:
set TodayIcon's OnSelect:
Set(var,!var)
set MonthDayGallery's Visible:
var
set WeekdayGallery's Visible:
var
Then result is like this:
2)calendar icon is outside the component
outside the component, inside the app
set the calendar icon's OnSelect:
Set(var,!var)
set the component's Visible:
var
Then result is like this:
Best regards,