Skip to content

Drupal Menu and Menu item Druxt components, with support for the JSON:API Menu Items module.

DruxtMenuNuxtModule

View source on GitHub

DruxtMenuNuxtModule(moduleOptions)

The Nuxt.js module function.

  • Adds Nuxt plugin.
  • Adds Vuex store.
  • Adds Nuxt Storybook integration.

The module function should not be used directly, but rather installed via your Nuxt configuration file.

A Nuxt module configures the Nuxt application, and is unrelated to a Drupal module.

Options are set on the root level druxt Nuxt config object.

Kind: global function
See

ParamTypeDescription
moduleOptionsobjectModule options object.

Example

// `nuxt.config.js`
module.exports = {
  modules: [
    'druxt-menu'
  ],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org'
  }
}