electerious / basiccontext Goto Github PK
View Code? Open in Web Editor NEWEasy-to-use context-menu for your website or webapp.
License: MIT License
Easy-to-use context-menu for your website or webapp.
License: MIT License
i want the classic "greyed out" behavior for unavailable options.
An option to add a custom class to the context. Like in basicModal.
Hey there,
It looks like you've built an awesome, easy to use component, but I'm hesitant to use it because it looks like development on it has stalled. There are still features I would like to use that don't appear to have been implemented yet, namely the sub-menu functionality.
So, will development continue for this tool?
Thanks!
Like in basicModal, a callback which gets fired when the context shows up.
I have a flaxbox layout in our web app. Topbar and two columns below. When I click to show the menu then the menu is exactly the same count of pixel up as the top bar height it is.
Ability to have custom Icons? like Google material?
Current:
basicContext.show(items, e, fnClose, fnCallback)
Proposed:
let opts = {
onClick,
…
}
basicContext.show(e, items, opts)
From a cursory look at the source code, it seems to me that the element on which the contextual actions are performed is not passed down to the functions that are invoked for menu items.
Is this already possible or would this be a good addition to the library if implemented?
repro steps:
1 attach a context menu to an element
2 right click in the element
3 notice that the context menu appears as it should
4 right click again
5 notice that the context menu is still visible, and so is the built-in context menu (see attached screenshot.)
Expected behavior:
If you keep right clicking it will either toggle the visibility of the context menu or it will re-position it under the new mouse position
Remove those options …
let items = [
{ icon: '', title: '', type: 'item' }
]
… and add the following:
let items = [
{ content: '' }
]
// or
let items = [
{ content: () => '' }
]
lovely, short written, cool menu, i love it and i love that there is no jquery involved:)
some ideas if you dont mind
all the best and thanks again for simple awesome work :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.