Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Deactivate a component instead of hide

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Deactivate a component instead of hide

Hello Shawn,

Could you please try this way:

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

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Deactivate a component instead of hide

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/

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Deactivate a component instead of hide

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.

Return to “Issues”