libLink icon indicating copy to clipboard operation
libLink copied to clipboard

Allow the removal of a specific link

Open jaimz22 opened this issue 9 years ago • 1 comments

first off... libLink and noUiSlider are awesome, thanks!

now for the issue; Suppose I've got a slider that I've got linked to many different elements, I need to remove one link, not all of them.

So for example:

I've got three sliders; slider1, slider2, and slider3. Each slider has two handles, lower and upper.

Now, each slider has a bunch of links: slider1 upper => slider2 lower slider2 lower => slider1 upper slider2 upper => slider3 lower slider3 lower => slider2 upper

image

in addition, each slider upper and lower link to a hidden input field and labels to display the value. (this means slider1 has 5 links, slider2 has 6 links, and slider3 has 5 links. Each of these links are built at different times during the application lifeline. the reason being, you can add and remove sliders.

Now, suppose I want to remove slider2 from the page, that's fine, I've come up with a way to relink the upper and lower handles for slider1 to slider3 and vice versa. But the issue comes when I then remove slider3... I can't simply update the upper link for slider1, I need to remove the link. I can't figure out how to remove a single link, I'd have to remove them all, at least that's what the documentation looks like. Maybe I missed something.

I hope I made sense!

jaimz22 avatar Feb 20 '15 20:02 jaimz22