@therunninghub/vue-select-menu

2.0.8 • Public • Published

@therunninghub/vue-select-menu

Netlify Status NPM Status NPM Downloads JavaScript Style Guide

Select menu for Vue.JS, A simple, easier and highly customized menu solution. This package is forked from the original package v-selectmenu by Terry Zeng.

Examples and Documentation

Live Examples and documentation please visit below

Features

  • i18n support.
  • regular menu multiple level support.
  • multiple group type support.
  • advanced menu mode with quick search.
  • keyboard to quick navigate in advanced menu mode.
  • custom row content render.
  • embedded to page.
  • mouse right click (context menu) or mouse move to call menu.

Screenshots

regular menu

regular

regular menu with group type

regular-group

advanced menu with group type

advanced

Getting Started

npm i @therunninghub/vue-select-menu --save

or

yarn add @therunninghub/vue-select-menu

Register as global component

Vue

Include plugin in your main.js file.

import Vue from 'vue'
import VueSelectMenu from '@therunninghub/vue-select-menu'
import '@therunninghub/vue-select-menu/dist/VueSelectMenu.css'

Vue.use(VueSelectMenu, {
  // global config options...
});

Nuxt

  • Create plugins/vue-select-menu.client.js
import Vue from 'vue'
import VueSelectMenu from '@therunninghub/vue-select-menu'
import '@therunninghub/vue-select-menu/dist/VueSelectMenu.css'

Vue.use(VueSelectMenu, {
  // global config options...
});
  • Add config to keys plugins in nuxt.config.js
module.exports = {
  // other configs
  plugins: [
    // other plugins
    // Newer Nuxt version
    src: '~/plugins/joy-vue.client.js'
    // Older Nuxt version
    { src: '~/plugins/joy-vue.client.js', ssr: false }
  ]
}

Use as local component

<template>
  <vue-select-menu ... />
</template>

<script>
import { VueSelectMenu } from '@therunninghub/vue-select-menu';
import '@therunninghub/vue-select-menu/dist/VueSelectMenu.css'

export default {
  components: { VueSelectMenu }
  // other code.
}
</script>

// other code

License

license

Package Sidebar

Install

npm i @therunninghub/vue-select-menu

Weekly Downloads

1

Version

2.0.8

License

MIT

Unpacked Size

167 kB

Total Files

21

Last publish

Collaborators

  • ansidev