Page 2 of 2

Deactivate a component instead of hide

Posted: Fri Jul 11, 2014 5:28 pm
by Shawn

Hi Maryna

This solution helped me disable most components on my page

Code: Select all

 Appery('room_name_field').addClass("ui-disabled");           

for footer navbar buttons I've used

Code: Select all

 $("[dsid='room_delete_button']").addClass('ui-disabled'); 

The only thing I'm unable to disable are the 'mobileselectmenu' component

Any ideas how to disable that ?

Rgds
Shawn


Deactivate a component instead of hide

Posted: Fri Jul 11, 2014 6:59 pm
by Evgene Karachevtsev

Hello Shawn,

Could you please try this way:

codeApperyio("mobileselectmenuName").parent().addClass('ui-disabled');/code


Deactivate a component instead of hide

Posted: Fri Jul 11, 2014 9:54 pm
by Shawn

Hi Evgene that worked awesome! Thanks

So can I add any JQuery function at the end of an Apperyio("") call ?

I can see the parent function here ...

http://api.jquery.com/parent/


Deactivate a component instead of hide

Posted: Fri Jul 11, 2014 9:59 pm
by Alena Prykhodko

Hi Shawn,

Appery.io comes with a small JavaScript library to make it easier to select elements in the DOM. It only provides a few functions, so you still need be familiar with the jQuery API.