Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
github.com/Johnathan/vue-context-menu-popup
<ContextMenu ref="contextMenu" :menu-items="menuItems"/>
<div class="context-menu-trigger"
@click.right.prevent="$refs.contextMenu.open($event)">
Right Click Me!
</div>
import ContextMenu from 'vue-context-menu-popup'
import 'vue-context-menu-popup/dist/vue-context-menu-popup.css';
export default {
data() {
return {
menuItems: [
{
label: 'First Menu Item',
},
{
label: 'Disabled Menu Item',
disabled: true,
},
{
label: 'I have children',
children: [
{
label: 'Child Item 1',
},
{
label: 'I also have children',
children: [
{
label: 'Child Item 2',
},
],
},
],
},
]
}
},
components: {
ContextMenu
}
}
A simple context menu component
<ContextMenu :menu-items="[....]"/>
menu-items
Array (required)visible
initial value: false
contextMenuPosition
initial value: [object Object]
openPosition
initial value: 'context-menu-open-right'
close()
open(position)
Accepts an Object with an x, y
position or an instance of Event
npm install vue-context-menu-popup
npm install
npm run serve
npm run build
npm run lint
npm run test:unit
npm run doc:build
FAQs
Unknown package
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.