Comments (3)
@maxkfranz we have not documented them because the users are already able to customize the context menu itself and the menu items using menuItemClasses
and contextMenuClasses
options. Each context menu (one per each cytoscape.js instance where this extension is registered) has classes specified by contextMenuClasses
along with cy-context-menus-cxt-menu
. Each context menu item has classes specified by menuItemClasses
along with cy-context-menus-cxt-menuitem
.
One downside of specifying that classes may be that, if we specify them in README then modifying them will become an API change and we will need to make a major release when we need to modify them. As we already provide customization for this, I think that we can keep avoiding documenting these classes. What do you thinkl about this? Do you think which way is more preferable to go?
Also, I realized that in README we did not mention that the users should include that css file while using this extension. I think that specifing it would be nice.
from cytoscape.js-context-menus.
OK.
If the user is expected to include the default stylesheet, then we should probably point the style
field of package.json
to the css file so it's more automatic.
from cytoscape.js-context-menus.
@maxkfranz I added that field to package.json
. Would you close the issue if there is no problem?
from cytoscape.js-context-menus.
Related Issues (20)
- Force remove trailing divider from last menu item HOT 3
- submenu-indicator-default.svg missing when using SvelteKit / Vite HOT 2
- Context menu doesn´t show if browser is in full screen HOT 1
- mouseover event is activated for the entities under the context menu HOT 3
- Trigger context menus only for nodes. HOT 2
- Pop up menu appears outside cytoscape network, even when nothing is clicked HOT 7
- multiple event types HOT 1
- How can I dynamically add items in a submenu? HOT 1
- How can I check if a particular submenu item already exists? HOT 3
- Is it possible to generate a fresh context menu during every right-click event on a node?
- How can I add styling only to a submenu? HOT 6
- Illegal constructor in 4.1 vs 4.0 HOT 3
- Does not work on Next.js SSR/CSR HOT 8
- Menu hide itself when zoom in graph HOT 1
- demos and menu don't work on mobile
- Menus not clickable when using cytoscape-expand-collapse
- Dynamic Context Menus? HOT 6
- Proper way to conditionally trigger on left click (tap)?
- "When I right-click on a node with my mouse, it's all good and shows the menu options I set up. But when I click on a blank area, I get this error popping up saying 'i.is is not a function TypeError: i.is'. Any idea how I can fix this?"
- Context Menu For Multiple Elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cytoscape.js-context-menus.