# View Navigation

When building custom solutions or using the defaults there is a provided method to navigate views with `negotiator.ui.updateUI(viewName, data, viewOptions)`

| Parameters                 | Type   | Details                                            | Options                                                                    |
| -------------------------- | ------ | -------------------------------------------------- | -------------------------------------------------------------------------- |
| viewName                   | string | string definition of the view to navigate to       | 'start', 'wallet', 'main', 'any\_custom\_view\_name'                       |
| data                       | object | optional data that you wish to send to this view   | object                                                                     |
| viewOptions.viewTransition | string | the optional transition animation to load the view | 'slide-in-left' \| 'slide-in-right' \| 'slide-in-top' \| 'slide-in-bottom' |

Example usage

```
negotiator.ui.updateUI('wallet', { viewName: 'wallet' }, { viewTransition: 'slide-in-left' })
```

For support and any questions please reach out to us on [discord](https://discord.com/invite/CfvmYFyujW) or via <sayhi@smarttokenlabs.com>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tokenscript.gitbook.io/token-negotiator/learn/active-negotiation-ui/view-navigation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
