Jitendra Bhagat
Posts: 0
Joined: Tue Apr 29, 2014 8:56 am

Unable to Disable swipe in the List Item in Appery Application

Hi Appery Team,

How to disable the Swipe, Swipeleft , Swiperight on the ListItem in Appery Application ?

This is what I tried :-

ListItem--Swipe -- Run JavaScript -- event.preventDefault( );
ListItem--Swipeleft -- Run JavaScript -- event.preventDefault( );
ListItem--Swiperight -- Run JavaScript -- event.preventDefault( );

But still my ListItem swipes to left and right a little.I want to completely disable the Swipe,Swipeleft,Swiperight events for the ListItem on a Screen.

Please suggest what to do.

Waiting for a favorable reply.

Thanks and Regards,

Jitendra Bhagat

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Unable to Disable swipe in the List Item in Appery Application

Hello!

Please doing prereturn false;/pre on these events. Let us know result.

Jitendra Bhagat
Posts: 0
Joined: Tue Apr 29, 2014 8:56 am

Unable to Disable swipe in the List Item in Appery Application

Hi Maryna,

This did not solved my problem.

Thanks,

Jitendra Bhagat

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Unable to Disable swipe in the List Item in Appery Application

Hello!

Could you clarify why do you want to disable this event? Try executing the following code on Page Show event:
pre$("[data-role=listview] li").on( "swipeleft swiperight" function(){
return false;
});/pre

Return to “Issues”