Comments (5)
Hi @bjschwarz .
These events you mentioned are configured insite the options
on Vis. Therefore we can pass the event in the configuration object on vue2vis. Check this fiddle: https://jsfiddle.net/ygcj2ehb/
We could though emmit
an event by default on this but I don't think thats implemented. @alexcode who implemented this may know better.
Regards,
from vue2vis.
@Menighin Thanks for the response. I also tried the method you suggested. The problem I ran into is there is no access to the vue object within a callback passed to Vis. The "this" object is not within the functions scope. Any ideas how to get around this?
from vue2vis.
Did you manage to find a solution for this?
I have a similar issue. I'm trying to call a Vue method from within a groupTemplate. Same issue - see https://jsfiddle.net/ers37v98/1/
from vue2vis.
@bjschwarz, an arrow function will share the current scope
onMove: () => alert("move: " + JSON.stringify(this.selectedId)),
https://jsfiddle.net/alexkodo/soung8h2/1/
from vue2vis.
@alexcode Thanks for the jsfiddle. I think if all the item data was set on select then the onMove would be accurate for the last selected object. Looks like it should work.
from vue2vis.
Related Issues (20)
- Dependency not found HOT 2
- Marker Support HOT 1
- items are added but not visible on timeline HOT 5
- Wind feature is missing from physics option HOT 2
- Custom template for network
- Graph2d zoom and slide not working very well HOT 2
- 修改options中的layout报错
- Vue3 - Cannot read property '_c' of undefined HOT 5
- Timeline: cluster options is not working HOT 2
- [Timeline] Limitations of using Vue component as items or groups HOT 2
- [Network] Vis Event Names
- [Timeline] Nested groups with 3 tree levels do not collapse correctly HOT 3
- dragEnd,dragStart event is invalid HOT 1
- 怎么才能像官方demo那样初始时不抖动?physics 实际时开启的
- Using without groups parameter in Latest Version HOT 1
- How to install Vue2vis on a macbook pro.
- How to load french locale ?
- Unmet dependencies with `@vue2vis/network` HOT 2
- The timeline chart don't show the tooltip
- Is it possible to group by lvl in a radial way?
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 vue2vis.