set different selected/stored values on stop #169
Unanswered
swampthang
asked this question in
Q&A
Replies: 1 comment
-
This seems to work now though I haven't tested it on shift/cmd click selection yet. I changed the on stop event to this:
and in the beforestart method:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have set up 2 selectable areas, both of which contain elements that relate to an element in the other container. The top container's 'selectable' is a div with a class of
.note
and the bottom container's 'selectable' is an svg 'g' element with a class of.vf-note
When the user selects elements in the top container, I want the related items in the bottom container to become the stored values and add the
.selected
class to them as well. Parsing through the library, I see where the SelectionArea class contains a property namedi
that has 4 arrays: stored, selected, touched and changed. I'm trying to figure out how to make this happen but failing miserably.Here's the function that inits the SelectionArea class. Check out the on stop to see what I'm talking about. Is there a clear way to pull this off? I hate having to get my grubby hands on values buried down in your code.
Beta Was this translation helpful? Give feedback.
All reactions