Vue - Navigation Tree Select

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

This component provides a way for the user to select a specific location from the navigation tree of the current wiki.

Usage

<script lang="ts" setup">
import { NavigationTreeSelect } from "@xwiki/cristal-navigation-tree-ui";
import { ref } from "vue";
import type { Ref } from "vue";

const location: Ref<SpaceReference | undefined> = ref(undefined);
</script>

<template>
  <navigation-tree-select
    v-model="location"
    label="Label"
    help="Help message"
  ></navigation-tree-select>
</template>

Visual results

Vuetify

vuetify.png

Shoelace

shoelace.png

Props

NameSinceTypeMandatoryDefault valueComment
label1.0.0-rc-1stringyesN/AThe component's label.
help1.0.0-rc-1stringnoundefinedAn optional help message describing what the component is for.
includeTerminals1.0.0-rc-1booleannofalseWhether to include terminal pages.
modelValue1.0.0-rc-1SpaceReferencenoN/AThe model of the component, corresponding to the currently selected location.
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