summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2020-01-22 12:38:10 +0000
committeraab-odoo <aab@odoo.com>2020-02-03 09:15:02 +0000
commit6bdcf054fdeef1b02cbb20bdb00fcba648725f36 (patch)
tree1e61b50fd1fdd57662139b4ec00931f0c0afc8b2 /addons/web/static/src/js/views/basic/basic_renderer.js
parenta3e24efc19e68dc838f645413cd392a64a9e3d8b (diff)
[IMP] web: custom_hooks: dynamic inheritable event handling
This commit's intention is to bring class inheritance of event handlers to components. Use case: A component class may want to set generic event handlers for all classes inheriting from it, in order to set shared event behavior from the start It is the case in many parts of Odoo, in particular in the cases of fields which need at least to react on some keyboard event for navigation The way to implement such a behavior is to make use of the `useListener` OWL hook, by passing as arguments event name and the handler function
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions