Comments (2)
@ugurdogrusoz the I considered the suggestion in #8 it works to disable tooltips, but then I realized that you want this to be optional and I reverted that change for now.
I think that instead of an option to disable tooltips globally or per menu item we may have an option called 'tooltip' or 'title' (Currently 'title' is the option name we use to set the content of each menu item I think that is misleading and we need to change the name of this option as 'content' because in html/css context 'title' sets the tooltip rather then content. However, changing it may require a major release.) and if this option is set it will determine the tooltip of the menu item, if it is not set then the menu item will not have a tooltip. In this way users will be able to set titles fof menu items other then their content.
If you accept it I can do in this way.
from cytoscape.js-context-menus.
I make the changes that I mentioned in the previous comment. I named the option, previously named as "title", as "content". I added "tooltipText" option which determines the tooltip text of a menu item. If it is not set for a menu item then that menu item does not have a tooltip. After making these changes I relased v3.0.0
from cytoscape.js-context-menus.
Related Issues (20)
- manual trigger for showing/closing cxtMenu? HOT 2
- TypeError: Illegal constructor in Safari on desktop HOT 13
- 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)?
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.