Hyperview

Hyperview

  • Guides
  • Examples
  • Reference
  • Blog

›Hyperview Navigation

Reference

  • Index

Behaviors

  • Behavior Attributes
  • <behavior>
  • Alert
  • Share

Display Elements

  • <doc>
  • <screen>
  • <header>
  • <body>
  • <view>
  • <text>
  • <image>
  • <list>
  • <section-list>
  • <section>
  • <section-title>
  • <items>
  • <item>
  • <spinner>
  • <web-view>

Input Elements

  • <form>
  • <text-field>
  • <select-single>
  • <select-multiple>
  • <option>
  • <picker-field>
  • <picker-item>
  • <switch>
  • <date-field>

Style Elements

  • <styles>
  • <style>
  • <modifier>

Hyperview Client

  • Hyperview component
  • Custom elements
  • Custom behaviors
  • Loading Screen

Hyperview Navigation

  • <navigator>
  • <nav-route>

<nav-route>

Nav-Routes provide the navigation details for navigators.

An example nav-route.

<nav-route id="index-route" href="/index.xml" />

Structure

A <nav-route> element can only appear as a direct child of a <navigator> element. A <nav-route> may contain one <navigator>.

An example nav-route with child <navigator>.

<nav-route id="index" href="">
  <navigator id="tabs" type="tab">
    ...
  </navigator>
</nav-route>

Attributes

  • Route attributes
  • id
  • href
  • selected
  • modal

Nav-Route attributes

id

TypeRequired
stringYes

A global attribute uniquely identifying the element in the whole document. This id may be used for navigation between routes.

href

TypeRequired
stringNo

The href to load when navigating to this route. If the <nav-route> has a direct <navigation> child, the href is ignored. The load will occur the first time the route is focused.

selected

TypeRequired
false (default), trueNo

[tab navigator only] The nav-route to initially select. If not present, the first nav-route is selected.

modal

TypeRequired
false (default), trueNo

[stack navigator only] Open a nav-route as a modal.

See also Loading Screen for more information on customizing loading screens.

← <navigator>
  • Structure
  • Attributes
Hyperview
Docs
ExamplesHyperview Reference
More
BlogGitHub
Copyright © 2025 Instawork