-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a function on the panEnabled property #66
Comments
Hi @Coeurdecedre,
I hope this helps you. |
Thanks @dash14 , I'll use watchers then ! However, would it be possible for you to add the possibility of adding a function this this property in the near future ? Thanks again ^^ |
Hi @Coeurdecedre, Node and edge configs require a function to be specified as a config in order to retrieve values from each object in some cases. However, since configs.view.* has a single value and the alternatives are available such as using getter/watch, it's not currently considering extending the view configs. Best Regards, |
Hi @dash14 ! Thank you very much for your help ! However, it doesn't work for me :( This is my code : I'm using Options API and not Composition API. holdingShift is a computed that return a boolean to each change of shift key status. Do you have an idea to solve my problem ? Best Regards. |
Hi @Coeurdecedre, data() {
const panEnabled = () => !this.holdingShift;
return {
vNGConfigs: {
view: {
get panEnabled() {
return panEnabled();
}, Best Regards, |
Hi @dash14 ! Thank you very much for your help ! I put the configs as a computed and it's working ! :) Best Regards ! |
Hi @Coeurdecedre, |
Hi ! I would like to know if there was a way to use a function on the panEnabled property that return a boolean ? I tried but it doesn't work.
Thanks for your reply ! :)
The text was updated successfully, but these errors were encountered: