daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2.04k stars 82 forks source link

new <Selecto> element #98

Open hatim-elmalki opened 2 years ago

hatim-elmalki commented 2 years ago

How to set a new element to overwrite the existing selected, added and removed items?

daybrush commented 1 year ago

@hatim-elmalki

setSelectedTargets(elements) method is changed. https://daybrush.com/selecto/release/latest/doc/Selecto.html#setSelectedTargets

AddsetSelectedTargetsByPoints(startPoint, endPoint) method is added.

https://daybrush.com/selecto/release/latest/doc/Selecto.html#setSelectedTargetsByPoints

Add selectTargetsByPoints(startPoint, endPoint) method is added. https://daybrush.com/selecto/release/latest/doc/Selecto.html#selectTargetsByPoints