Created a new event to allow blocking of navigation. by NathanaelA · Pull Request #618 · NativeScript/NativeScript
Repository navigation
Created a new event to allow blocking of navigation. - #618
Closed
NathanaelA wants to merge 1 commit into NativeScript:master from NathanaelA:onCanNavigateFrom
Closed
Created a new event to allow blocking of navigation. #618 NathanaelA wants to merge 1 commit into NativeScript:master from NathanaelA:onCanNavigateFrom
Conversation
NathanaelA commented Aug 23, 2015
Copy link Copy Markdown
Contributor
This creates an event that gets ran before navigation is even tried. This allows a page to cancel navigating from a page. Fix for #583
Example:
Page.on('canNavigateFrom', function(args) { args.canNavigate = false; });
Created a new event to allow blocking of navigation.
8075009
ns-bot commented Aug 23, 2015
Copy link Copy Markdown
|
Can one of the admins verify this patch? |
This comment was marked as abuse.
Sign in to view ns-bot added cla: yes and removed cla: no labels Aug 23, 2015atanasovg commented Aug 28, 2015
Copy link Copy Markdown
Contributor
|
Hey @NathanaelA , thanks a bunch for your contribution. We discussed your pull internally and our suggestion is to use the existing A similar implementation may be found in the application module for android - as stated in the definition file . Additionally, my thinking is that it is a better idea to add a more general approach to canceling back/forward navigation. Because it is the
What do you think? |
This comment was marked as abuse.
Sign in to viewdtopuzov commented Sep 3, 2015
Copy link Copy Markdown
Contributor
|
run ci |
ns-bot commented Sep 3, 2015
Copy link Copy Markdown
|
✅ |
enchev commented Oct 1, 2015
Copy link Copy Markdown
Contributor
|
Hey @NathanaelA , @atanasovg , @hshristov , What the status of this pull request? Is it still valid or the requested functionality is already available? Thanks! |
atanasovg commented Oct 1, 2015
Copy link Copy Markdown
Contributor
|
Well, as I already stated in my previous comment, our suggestion is to not introduce new event but rather use the existing |
enchev commented Oct 1, 2015
Copy link Copy Markdown
Contributor
|
@atanasovg In this case should we close this pull request and open issue? @NathanaelA what do you think? Thanks |
This comment was marked as abuse.
Sign in to viewenchev commented Oct 8, 2015
Copy link Copy Markdown
Contributor
|
Ok, in this case let's close this and open an issue describing in details the problem with |
lock
Bot
commented
Aug 29, 2019
Copy link Copy Markdown
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bot
locked and limited conversation to collaborators Aug 29, 2019 Sign up for free to subscribe to this conversation on GitHub . Already have an account? Sign in .