flectra/addons/web_editor/static/lib/nearest
2018-04-09 17:13:32 +05:30
..
bower.json [INIT] Inception of Flectra from Odoo 2018-01-16 11:45:59 +05:30
jquery.nearest.js [INIT] Inception of Flectra from Odoo 2018-01-16 11:45:59 +05:30
jquery.nearest.min.js [ODOO] Upstream Changes of Odoo to Flectra till commit ref. d636c6c95c 2018-04-09 17:13:32 +05:30
nearest.jquery.json [INIT] Inception of Flectra from Odoo 2018-01-16 11:45:59 +05:30
README.md [INIT] Inception of Flectra from Odoo 2018-01-16 11:45:59 +05:30

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()