This lib is also used by the Gantt view, so we move it to the common basis between web_editor and web_gantt, which is web. Part of task 2205607 closes odoo/odoo#51606 Related: odoo/enterprise#9740 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
23 lines
581 B
Markdown
23 lines
581 B
Markdown
jQuery Nearest Element plugin
|
|
======
|
|
|
|
**Full documentation is at <http://gilmoreorless.github.io/jquery-nearest/>**
|
|
|
|
**Demo:** <http://gilmoreorless.github.io/jquery-nearest/demo.html>
|
|
|
|
Method signatures:
|
|
|
|
* `$.nearest({x, y}, selector)` - find `$(selector)` closest to x/y point on screen
|
|
* `$(elem).nearest(selector)` - find `$(selector)` closest to elem
|
|
* `$(elemSet).nearest({x, y})` - filter `$(elemSet)` and return closest to x/y point on screen
|
|
|
|
Reverse logic:
|
|
|
|
* `$.furthest()`
|
|
* `$(elem).furthest()`
|
|
|
|
Intersecting/touching:
|
|
|
|
* `$.touching()`
|
|
* `$(elem).touching()`
|