The DruxtJS Menu module provides a Menu Vue component to be used within a Druxt (DRUpal nuXT) project.
Links
Install
$ npm install druxt-menu
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
...
'druxt-menu',
'druxt-router'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org'
}
}
Options
Base Druxt options
These options are available to all Druxt modules.
Option | Type | Required | Default | Description |
---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
endpoint | string | No | /jsonapi | JSON:API Endpoint of the Drupal installation. |
These options are specific to this module.
Option | Type | Required | Default | Description |
---|
menu.jsonApiMenuItems | boolean | No | false | Use the Drupal JSON:API Menu Items module resource. |