Page 1 of 1

How to hide a selector?

Posted: Mon Feb 24, 2014 10:36 pm
by Jason Cheek

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?


How to hide a selector?

Posted: Tue Feb 25, 2014 1:15 am
by Igor

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.


How to hide a selector?

Posted: Tue Feb 25, 2014 1:39 am
by Jason Cheek

I don't think I understand what you mean.

By selector I mean just a basic Appery dropdown list, like this one:

Image


How to hide a selector?

Posted: Tue Feb 25, 2014 2:33 am
by Igor

Sorry for misunderstanding.
Please try below code
pre
code
Appery('selector_name').closest(".ui-select").hide();
/code
/pre


How to hide a selector?

Posted: Tue Feb 25, 2014 3:05 am
by Jason Cheek

That worked, thanks!


How to hide a selector?

Posted: Sat May 23, 2015 11:23 pm
by RobertJay

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.


How to hide a selector?

Posted: Tue May 26, 2015 2:01 am
by Yurii Orishchuk

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.


How to hide a selector?

Posted: Tue May 26, 2015 3:09 am
by RobertJay

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.