docs
  1. SCAYLE Resource Center
  2. Developer Guide
  3. Features
  4. Site Navigation
  5. Composables

Composables

The site navigation feature relies on the useNavigationTreeByNamecomposable from @scayle/storefront-nuxt.

useNavigationTreeByName

useNavigationTreeByName is used to declaratively fetch a SCAYLE navigation tree by its configured name.

Parameters

options

params controls the fetching of the navigation tree through SAPI

options controls the behavior of useAsyncData and has the same format as this function's parameters

Returns

An AsyncData object where the data type is NavigationTree.