@therunninghub/vue-select-menu
v2.0.8
Published
Select menu for Vue.JS, A simple, easier and highly customized menu solution
Downloads
17
Maintainers
Readme
@therunninghub/vue-select-menu
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 menu with group type
advanced menu with group type
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
innuxt.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