New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bbu-contextmenu

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbu-contextmenu

A contextmenu for Vue3

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

bbu-contextmenu

A contextmenu for Vue3

Homepage

https://sumcets.github.io/bbu-contextmenu/

Installation

npm install bbu-contextmenu

Attributes

AttributeTypeDefault
menuListArray[options][]

Options

AttributeTypeDefault
disabledbooleanfalse

Event

NameDescriptionParameters
onMenuClicktriggers when user clicks the menuoptions

Demo

<template>
    <BbuContextmenu :menu-list="menuList" @onMenuClick="onMenuClick">
      <div class="context">
          bbu-contextmenu
      </div>
    </BbuContextmenu>
</template>

<script setup>
    import {BbuContextmenu} from 'bbu-contextmenu'
    import 'bbu-contextmenu/bbu-contextmenu/style.css'
    const menuList = [
        {
          name: 'COPY',
          disabled: false
        },
        {
          name: 'EDIT',
          disabled: true
        },
        {
          name: 'VUE3',
          disabled: false
        }
     ]
    const onMenuClick = menu => {
        // todo
        // { name: 'xxx', disabled: true }
    }
    
</script>

View

img

img

Keywords

contextmenu

FAQs

Package last updated on 07 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts