Vue - Navigation Tree

Last modified by Pierre Jeanjean on 2026/01/21 10:40

This component displays the navigation tree of the current wiki. The currently visited page should always be the selected node of the tree, and loading children is done lazily when nodes are opened.

Usage

<script lang="ts" setup">
import { NavigationTree } from "@xwiki/cristal-navigation-tree-ui";
</script>

<template>
  <navigation-tree include-terminals></navigation-tree>
</template>

Visual results

Vuetify

vuetify.png

Shoelace

shoelace.png

Props

NameSinceTypeMandatoryDefault valueComment
includeTerminals1.0.0-rc-1booleannofalseWhether to include terminal pages.
showRootNode1.0.0-rc-1booleannofalseWhether to display the root node. If false, the second hierarchy level will be flattened and displayed as the root nodes.
nodeClickAction1.0.0-rc-1(node: NavigationTreeNode) => Promise<void>noundefinedAn optional click action that replaces the default action of clicking the URL in a node.
France 2030 Logo

This project is being financed by the French State as part of the France 2030 program

Ce projet est financé par l’État Français dans le cadre de France 2030

  • Powered by XWiki 17.10.9-node1. Hosted and managed by XWiki SAS

Get Connected