Skip to content

API Reference / @gtkx/navigation / TabRouterOptions

Type Alias: TabRouterOptions ​

TabRouterOptions = DefaultRouterOptions & object

Type Declaration ​

backBehavior? ​

optional backBehavior?: BackBehavior

Control how going back should behave

  • firstRoute - return to the first defined route
  • initialRoute - return to the route from initialRouteName
  • order - return to the route defined before the focused route
  • history - return to last visited route; if the same route is visited multiple times, the older entries are dropped from the history
  • fullHistory - return to last visited route; doesn't drop duplicate entries unlike history - matches behavior of web pages
  • none - do not handle going back