-
-
Notifications
You must be signed in to change notification settings - Fork 32
docs: Navigation #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Navigation #59
Conversation
content/guide/ui/navigation.md
Outdated
```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. |
There was a problem hiding this comment.
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.
content/guide/ui/navigation.md
Outdated
## 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
content/guide/ui/navigation.md
Outdated
|
||
### Getting a Frame instance | ||
|
||
The following are some of the ways to obtain an instance of the Frame class: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
content/guide/ui/navigation.md
Outdated
```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. |
There was a problem hiding this comment.
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 (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. |
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
No description provided.