can Application.getRootView() called anywhere? #10634
Unanswered
fgroupindonesia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i recently use a button that call certain function.
Let say this is my login\login-page.xml file contains :
And the Button is actually calling my onVerify functions located inside login-page.js where it was located in the same directory as the previous file. And these are the code of the javascript :
My purpose is that this button could get the reference of the parent view. And finding the layout there.
Then change the visibility to be shown or hidden. But the apps when i did click on the button giving me a crashed result. Saying that there is undefined variable on visibility.
May i know why it cant get the reference? So strange....
Wish anyone could help me out of this problem.
Beta Was this translation helpful? Give feedback.
All reactions