-
- Downloads
[IMP] website: introduce "auto" widget for theme modal
The theme customize dialog implements its own system of widgets. For example: data-widget="color" and data-widget="input". Now, a new type of widget data-widget="auto" exists. The goal is the same as the data-widget="input" but with a predefined value that the user cannot choose. Also, as "data-value" was badly chosen during its implementation, it is now renamed to "data-variable" and "data-value" is now used with the new widget. Example of the new widget "auto": <opt data-widget="auto" data-variable="logo-height" data-value="3rem" string="Logo Height"/> -> Allows to create a button forcing the logo height to 3rem. Part of https://github.com/odoo/odoo/pull/33442 task-1974659
Showing
- addons/website/static/src/js/widgets/theme.js 38 additions, 7 deletionsaddons/website/static/src/js/widgets/theme.js
- addons/website/static/src/xml/website.editor.xml 9 additions, 4 deletionsaddons/website/static/src/xml/website.editor.xml
- addons/website/views/website_templates.xml 2 additions, 2 deletionsaddons/website/views/website_templates.xml
Loading
Please register or sign in to comment