Page 1 of 1

Unable to Disable swipe in the List Item in Appery Application

Posted: Mon Oct 27, 2014 11:17 am
by Jitendra Bhagat

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


Unable to Disable swipe in the List Item in Appery Application

Posted: Mon Oct 27, 2014 2:21 pm
by Maryna Brodina

Hello!

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


Unable to Disable swipe in the List Item in Appery Application

Posted: Tue Oct 28, 2014 6:24 am
by Jitendra Bhagat

Hi Maryna,

This did not solved my problem.

Thanks,

Jitendra Bhagat


Unable to Disable swipe in the List Item in Appery Application

Posted: Wed Oct 29, 2014 2:28 pm
by Maryna Brodina

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