I add page runtime when swipeleft happens. But when swiperight happened, I can’t return to the previous page that I created from sliding from left to right .
I added data-direction="reverse" pages to the pages, but did not create an effect from left to right.
data-direction="reverse"
Is there any way to do this?
function ChangePage(pageId,iPageIndex) { var forward = iCurrCardIndex < iPageIndex; iCurrCardIndex = iPageIndex; $.mobile.changePage("#" + pageId, "slide", !forward, true); }
It might be easier to use JQM:
<a href="page.html" data-transition="slide" data-direction="reverse">Link Text</a>
as well as in js like:
$.mobile.changePage("page.html", { transition: 'slide', reverse: true });
data-direction = "reverse" does not belong on the page, you add it to the link:
<a href="page.html" data-direction="reverse">Link Text</a>
will send you to the reverse conversion .html page.
Using data-rel = "back", jQuery Mobile will simulate a back button, see "Backlink" here: http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/pages/docs- pages.html
<a href="nextPage.html" data-transition="reverse slide">Next page</a>
Source: https://habr.com/ru/post/1369161/More articles:CSS3 versus canvas for text rotation - html5Display non-rectangular shape TextBlock - wpfWhich method is called before viewDidLoad (), but after main? - iosStroke search algorithm with the least number of calculations - javaHow to update the interface in the task completion block? - cocoa-touchhow to delete row when u loop on datatable - .netDoesn't suppress warnings better than adding serialVersionUID in this scenario? - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1369164/adding-points-to-xyseries-dynamically-with-jfreechart&usg=ALkJrhj-tS4XbX-549YLDWr1XbpcaI_uiADisplay all XYSeries at once in jFreeChart to increase speed - javaHow to remove colors, etc. From the output of ssh - javaAll Articles