diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-12-13 14:15:38 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-16 09:14:01 +0000 |
| commit | 2cc8316c669f41c71b2fb73ed416f1118e62f9c1 (patch) | |
| tree | ac9a2a94e359422bbc9887f1cfbc171a3501c09a /addons/note/data/note_data.xml | |
| parent | 684a19f0c1e1cc84df6b49e5a41ebe2fc53c2f39 (diff) | |
[IMP] web_editor: add new way to toggle left panel widget visibility
Now, instead of extending updateUI, developers can extend
_computeVisibility and _computeWidgetVisibility to indicate if the
whole option or a specific widget needs to be visible or not.
Without any JS, developers can also add a 'data-dependencies' attribute
on widgets whose value is a comma-separated list of widget names. Widget
names are specificied through 'data-name'.
Other notable changes:
1) *All* the options UI of a same section are updated on a change (not
only the widgets of the same option).
2) Back as it was before: the UI is only updated in non-preview mode
(prevent flickering of background removal during color preview
because of point 1).
Part of https://github.com/odoo/odoo/pull/41600
closes odoo/odoo#41600
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/note/data/note_data.xml')
0 files changed, 0 insertions, 0 deletions
