9951 explained code solutions for 126 technologies


js-leaderlineHow to remove created line in anseki/leader-line?


To remove a created line in anseki/leader-line, you can use the remove() method. This method will remove the line from the DOM and all associated event listeners.

Example code

let line = new LeaderLine(...);
line.remove();

Output example

undefined

The remove() method takes no arguments and returns undefined.

Helpful links

Edit this code on GitHub