티스토리 뷰

 

1. Show Hide button will change locShowHide (component context variable)

2. Image on the right will visible based on the locShowHide

3. go sc1 and go sc2 changes the screen

 

Issue: locShowHide in Screen 1 and locShowHide in Screen 2 is independant. It might visible on Screen 1 but not Screen 2.

 

Solution:

On Hidden property for all screens, set global variable based on the locShowHide variable of that screen's component.

The component will understand that it uses global variable to show/hide image.

The component resets itself and make locShowHide blank using timer component.

Blank handling if statement has been added.

 

Screen1 OnHidden:

If(!IsBlank(Component1_1.cmpShowHide),Set(glbShowHide, Component1_1.cmpShowHide));

Show Hide button:

If(IsBlank(locShowHide), Set(locShowHide,!Parent.inputShowHide), Set(locShowHide,!locShowHide))

image visible:

If(IsBlank(locShowHide), Parent.inputShowHide, locShowHide)

 

Gif demo

componentvariablesync_20200809235052.zip
0.02MB

 

 

댓글
Announcement
Recent Posts
Recent Comments
Total
Today
Yesterday
Link
TAG
more
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Search by month