flectra/addons/web_editor/static/lib/nearest
2018-01-16 02:34:37 -08:00
..
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 [REN] rename namespace 2018-01-16 02:34:37 -08:00
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()