Token Negotiator
  • Introduction
  • Quick Start
    • Getting Started with NFT's
    • Getting Started with Fungible Tokens
    • Getting Started with Off Chain Tokens
  • Learn
    • Installation
    • Supported Chains
    • Supported Wallets
    • Supported Attestations
    • Event Hooks
    • Issuer Configurations
      • Issuer Configuration EVM
      • Issuer Configuration Solana
      • Issuer Configuration Flow
      • Issuer Configuration Ultra
      • Issuer Configuration Socios
      • Issuer Configuration Off Chain
    • Active Negotiation (UI)
      • Custom Views
      • View Navigation
      • Theme
      • Configuration Options
    • Passive Negotiation (no UI)
      • Wallet Connection
    • Token Authentication
      • Off Chain Authentication
      • On Chain Token Authentication (evm)
    • Smart Contract and wallet Interaction
      • Sign message
    • Off Chain Token Issuers
  • Reference
  • Articles
  • Videos
  • Showcase
  • Contribution
  • Support
  • Migrating from version 2x to 3x
  • Github Examples
Powered by GitBook
On this page
  1. Learn
  2. Active Negotiation (UI)

View Navigation

Custom navigation within TokenNegotiator

PreviousCustom ViewsNextTheme

Last updated 1 year ago

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 or via sayhi@smarttokenlabs.com

discord