Skip to content

Conversation

Ombuweb
Copy link
Contributor

@Ombuweb Ombuweb commented Dec 4, 2022

No description provided.

@cla-bot cla-bot bot added the cla: yes label Dec 4, 2022
@Ombuweb Ombuweb marked this pull request as draft December 4, 2022 22:57
@Ombuweb Ombuweb marked this pull request as ready for review December 6, 2022 15:49
```ts
frame.goBack(to)
```
Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the topmost Frame and will recursively search for an instance that has the [canGoBack](#cangoback) operation available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Navigates back using the navigation hierarchy, contained within a Frame stack where the top value is popped.

@NathanWalker NathanWalker changed the base branch from main to dev July 17, 2023 17:44
## Using Frame

### Navigating to another page
To navigate to a page, first get the desired Frame instance. Then for a simple navigation, call the instance's [navigate()](#navigate) method passing it the path of the page to navigate to.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To navigate to a page, first get the desired Frame instance. Then for a simple navigation, call the instance's [navigate()](#navigate) method passing it the path of the page to navigate to.
For page navigation, first obtain the desired Frame instance.
For a simple navigation, call the instance's `navigate` method with a string argument consisting of the desired path to navigate to.


### Getting a Frame instance

The following are some of the ways to obtain an instance of the Frame class:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The following are some of the ways to obtain an instance of the Frame class:
The following are some of the ways in which to obtain an instance of the Frame class:

```ts
frame.goBack(to)
```
Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the topmost Frame and will recursively search for an instance that has the [canGoBack](#cangoback) operation available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the topmost Frame and will recursively search for an instance that has the [canGoBack](#cangoback) operation available.
Navigates back using the navigation stack contained within the topmost Frame and will recursively navigate back with each Frame instance which `canGoBack` returns true.

@NathanWalker NathanWalker merged commit 9679531 into NativeScript:dev Jul 17, 2023
NathanWalker added a commit to Ombuweb/docs that referenced this pull request Aug 13, 2023
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit to Ombuweb/docs that referenced this pull request Aug 30, 2023
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants