All Projects â†’ rawilk â†’ Vue Context

rawilk / Vue Context

Licence: mit
A simple vue context menu component.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Context

Open in Windows Terminal
No description or website provided.
Stars: ✭ 24 (-90%)
Mutual labels:  context-menu
Windows Terminal Context Menu
📃 This is a simple script to add right click context menu for your best Windows terminal ❤
Stars: ✭ 364 (+51.67%)
Mutual labels:  context-menu
Ngcontextmenu
Handcraft your very own context menus for a richer UX!
Stars: ✭ 81 (-66.25%)
Mutual labels:  context-menu
WSL-Context-Menu-Manager
Manages the context menu for your Linux tools in WSL/WSL2 for Windows.
Stars: ✭ 25 (-89.58%)
Mutual labels:  context-menu
Vue Context Menu
🗃️ Vue 2.x 右键菜单组件,菜单内容可以随意自定义
Stars: ✭ 279 (+16.25%)
Mutual labels:  context-menu
React Contexify
Add a context menu to your react app with ease
Stars: ✭ 575 (+139.58%)
Mutual labels:  context-menu
dislash.py
A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.
Stars: ✭ 172 (-28.33%)
Mutual labels:  context-menu
Jquery Ui Contextmenu
jQuery plugin that turns a jQueryUI menu widget into a context menu.
Stars: ✭ 170 (-29.17%)
Mutual labels:  context-menu
React Native Hold Menu
📱 A performant, easy to use hold to open context menu for React Native powered by Reanimated 🚀
Stars: ✭ 325 (+35.42%)
Mutual labels:  context-menu
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+390.42%)
Mutual labels:  context-menu
elm-contextmenu
Flexible context menu for Elm
Stars: ✭ 16 (-93.33%)
Mutual labels:  context-menu
Contextmenu
ContextView for Xamarin.Forms
Stars: ✭ 271 (+12.92%)
Mutual labels:  context-menu
Context Search
A Firefox WebExtension that displays a context menu, that searches for the selected text.
Stars: ✭ 26 (-89.17%)
Mutual labels:  context-menu
rctx-contextmenu
✨ Context menu for React
Stars: ✭ 23 (-90.42%)
Mutual labels:  context-menu
Customrightclickmenu
A browser extension to add links and run scripts/stylesheets all from your right-click menu
Stars: ✭ 102 (-57.5%)
Mutual labels:  context-menu
vaadin-context-menu
The responsive Web Component for showing context dependent items for any element on the page. Part of the Vaadin components.
Stars: ✭ 26 (-89.17%)
Mutual labels:  context-menu
Context Menu.android
You can easily add awesome animated context menu to your app.
Stars: ✭ 3,805 (+1485.42%)
Mutual labels:  context-menu
React Native Selectable Text
Capture text selection and customize the action menu
Stars: ✭ 174 (-27.5%)
Mutual labels:  context-menu
Context Menu.ios
You can easily add awesome animated context menu to your app.
Stars: ✭ 1,854 (+672.5%)
Mutual labels:  context-menu
Msys2 Mingw Shortcut Menus
Configuration files needed to set up right-click shortcut in context menus for MSYS2, MinGW32/64 bash
Stars: ✭ 60 (-75%)
Mutual labels:  context-menu

Attention:

I no longer have the ability or interest in maintaining this package since I am not using Vue in any of my projects anymore, so I am abandoning vue-context. If your project depends on vue-context, please feel free to fork and maintain the package yourself, or use an alternative context menu package.

vue-context

npm version npm downloads GitHub issues GitHub stars VueJS version

vue-context provides a simple yet flexible context menu for Vue. It is styled for the standard <ul> tag, but any menu template can be used. The menu is lightweight with its only dependency being vue-clickaway. The menu has some basic styles applied to it, but they can be easily overridden by your own styles.

The menu disappears when you expect by utilizing vue-clickaway and it also optionally disappears when clicked on.

Screenshot

Getting Started

The following instructions will help you get the vue-context menu up and running on your project.

Installation

Using npm:

npm i vue-context

Basic Usage

Import the component and use it in your app.

import Vue from 'vue';
import VueContext from 'vue-context';

new Vue({
    components: {
        VueContext
    },
    
    methods: {
        onClick (text) {
            alert(`You clicked ${text}!`);
        }
    }
}).$mount('#app');

Next add an element to the page that will trigger the context menu to appear, and also add the context menu to the page.

<div id="app">

    <div>
        <p @contextmenu.prevent="$refs.menu.open">
            Right click on me
        </p>    
    </div>
    
    <vue-context ref="menu">
        <li>
            <a href="#" @click.prevent="onClick($event.target.innerText)">Option 1</a>
        </li>
        <li>
            <a href="#" @click.prevent="onClick($event.target.innerText)">Option 2</a>
        </li>
    </vue-context>
    
</div>

Notice: As of version 4.1.0, the menu styles are not automatically included by default anymore. You will need to manually import them now in your own stylesheets.

@import '~vue-context/dist/css/vue-context.css';

// Or
@import '~vue-context/src/sass/vue-context';

Documentation

For full documentation, go here: https://randallwilk.dev/docs/vue-context.

If you would like to contribute to the documentation, you can edit the docs found here: https://github.com/rawilk/vue-context/tree/master/docs

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Alternatives

See awesome-vue for other alternatives.

License

vue-context uses the MIT License (MIT). Please see the license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].