Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
ons-navigator and slide animation from right to left
-
With the ons-navigator, what value can I give to
options.animation
to have a slide from right to left (animator.pop
and notanimator.push
) when usingresetPage
? It would be apopToPage
functionnality which is needed in many cases…
-
@zabojad There’s no option for that but you can make a custom animator for this. This is an example in ES5. More info about custom animators here.
-
@Fran-Diox really, such basic configuration behavior should be supported without needing to make a custom animator… With the react bindings of Onsen UI,
resetPageStack
is our only way to make a “pop until” functionnality… And showing a pop animation rather than a push would be more logical in that case…Could this be added through a PR?
-
@Fran-Diox, I agree with @zabojad. May be a more specific slide-left, slide-right could be added besides the default slide option which can be kept for backward compatibility…
-
@jamal For your information, this has been addressed in https://github.com/OnsenUI/OnsenUI/pull/2284
-
@zabojad, is this for only for REACT or all frameworks?
-
@jamal core
resetToPage
hasoption.pop
since 2.8.3 :+1: