Skip to content
This repository has been archived by the owner on May 8, 2022. It is now read-only.

change options #10

Open
smiling-Jack opened this issue Nov 19, 2014 · 9 comments
Open

change options #10

smiling-Jack opened this issue Nov 19, 2014 · 9 comments

Comments

@smiling-Jack
Copy link

Hallo
is there no way to change options after on runtime ?
I want to change the grid size.

@sporritt
Copy link
Member

not right now, no, but we can make this an enhancement request to do that. any other settings you might like to change?

@smiling-Jack
Copy link
Author

This is great
at the moment I only need to change the grid. For the future it would be nice to change the Scope.

@sporritt
Copy link
Member

Scope can be changed already, although only changing the scope of a makeSource/makeTarget element is currently exposed through jsPlumb. I'd have to add some code to allow people to change the scope of an Endpoint, but that would be an issue inside jsPlumb and not here I guess.

@smiling-Jack
Copy link
Author

Hallo
I tried to figure it out on my own. But i can't find the code line where to change the grid params :-(

My code Style is to differnt to you ;-)

@sporritt
Copy link
Member

Can you tell me, how do you want to call this? Through jsPlumb?

@smiling-Jack
Copy link
Author

Over a instance methode to change the Grid for the hole instance

as example:
myInstanceOfJsPlumb.draggable.setGrid([50,50]);

@sporritt
Copy link
Member

how about

myInstance.setDragOptions(someElementOrSelector, {
  grid:[50,50]
});

of course this is really an issue for the jsplumb repo. but i was wondering if you were using Katavorio directly or through jsPlumb.

@smiling-Jack
Copy link
Author

thats nice

@sporritt
Copy link
Member

oh good, nice is nice

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants