useNavigation
Category:
Navigation & Routing
Composable for navigation. Provides state for navigation trees depending on navigation type.
Types
ts
export function useNavigation(params?: {
type?: Schemas["NavigationType"] | string;
}): UseNavigationReturn
ts
export type UseNavigationReturn = {
/**
* List of navigation elements
*/
navigationElements: ComputedRef<Schemas["NavigationRouteResponse"] | null>;
/**
* Load navigation elements
*/
loadNavigationElements(
params: operations["readNavigation post /navigation/{activeId}/{rootId}"]["body"],
): Promise<Schemas["NavigationRouteResponse"]>;
};