how to cancel the 'ons-back-button' action?



  • HI,how to cancel the ‘ons-back-button’ action?


  • Onsen UI

    @czpae86 You can use prepop event and call event.cancel() to cancel the pop. Otherwise, ons-back-button has a onClick prop that you can use to add custom behavior (document.querySelector('#my-back-button').onClick = function() { ... };).


Log in to reply