View Navigation

Custom navigation within TokenNegotiator

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

ParametersTypeDetailsOptions

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

Last updated