Page 1 of 1

How do I set the 'hide' / 'show' property of the UI select component?

Posted: Wed Apr 22, 2015 9:58 pm
by Todd Penny

Hi,

I have tried this approach and it did not work.

Apperyio('inputSelect').hide();
Apperyio('inputSelect').show();

Can anyone suggest the correct syntax?


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Thu Apr 23, 2015 5:36 am
by Evgene Karachevtsev

Hello Todd,

I just tried it and this approach works correctly. Could you please clarify how do you call it?


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Thu Apr 23, 2015 11:43 am
by Todd Penny

I have a test harness which runs this Javascript on button click event
Apperyio('inputSelect').hide();


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Thu Apr 23, 2015 12:49 pm
by Evgene Karachevtsev

Todd,

I tested, this code works correctly on button click. Could you please clarify do you have any error in a browser console?


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Thu Apr 23, 2015 1:18 pm
by Todd Penny

No error is reported. Nothing happens when the button is clicked. I have attached a screen shot as I'm sure this is something 'silly. Image


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Fri Apr 24, 2015 8:45 am
by Alena Prykhodko

Please make sure you use correct component name.


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Fri Apr 24, 2015 3:06 pm
by Todd Penny

I have checked and the component name appears to be correct. It's called:

'inputSelect' You can see it in the screen shot above in the JS code and in the component name.

I'm sure this is something silly :-)


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Fri Apr 24, 2015 7:36 pm
by Evgene Karachevtsev

Hello Todd,

This code works for other components, but not for select. Please try the following:
precodeAppery("mobileselectmenu_59").closest('[data-role=fieldcontain]').hide();
Appery("mobileselectmenu_59").closest('[data-role=fieldcontain]').show();/code/pre


How do I set the 'hide' / 'show' property of the UI select component?

Posted: Fri Apr 24, 2015 8:39 pm
by Todd Penny

Great, it works! Thanks for your help. Todd