Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Mobile changePage with direction

Is it possible to specify both the kind of changePage direction and the direction of that that changePage? Something like: $.mobile.changePage("mySpecialPlace.html", {transition: "slideup"}, {direction: reverse});

like image 594
Apollo Avatar asked Dec 27 '22 20:12

Apollo


1 Answers

Documentation: http://jquerymobile.com/demos/1.1.1/docs/api/methods.html

You were close, but check-out the documentation I linked-to above, it'll show you the exact structure of all the options you can specify for the .changePage() method.

$.mobile.changePage("mySpecialPlace.html", {
    transition : "slideup",
    reverse    : true        //notice options are passed via the same object
});
like image 151
Jasper Avatar answered Jan 09 '23 13:01

Jasper