How to hide a selector?
I am trying Appery('selector_name').hide() but this does not work as expected. The selector stays visible but it simply stops functioning when clicked on.
What am I doing wrong?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I am trying Appery('selector_name').hide() but this does not work as expected. The selector stays visible but it simply stops functioning when clicked on.
What am I doing wrong?
Please try below code:
pre
code
Appery('selector_name').find("jQuerySelector").hide();
/code
/pre
Where "jQuerySelector" - jQuery-compatible selector for the element you need to hide inside the component.
Sorry for misunderstanding.
Please try below code
pre
code
Appery('selector_name').closest(".ui-select").hide();
/code
/pre
That worked, thanks!
Hi Igor - your command, and the related show() version, seem not to work when the selector was set in the UI to be invisible. They work perfectly when the UI set the selector as being visible.
Hi Robert,
Yes that's correct. You need to "show" wrapper container(that's actually hidden from builder).
Please tell us what component you can not show.
Regards.
Thanks Yurii. It was the selector component (which was set to be hidden by the UI) that could not be shown by your command. But Yurii, for me this is no big deal - I was easily able to have the UI make it visible, and then use your commands on page load and page show events to do what I need. My post was just to inform other other forum users. Thanks again.