[IMP] views: document attributes "class" and "js_class"

Part-of: odoo/documentation#3722
This commit is contained in:
Mathieu Duckerts-Antoine 2023-03-02 14:53:07 +00:00
parent 16224865de
commit 1491cce9d6

View File

@ -178,6 +178,15 @@ an impact on all view types.
.. todo:: Views main content section, with field, group & separator ?
* ``class``
optional string containing some classes to set on the root node of the view.
* ``js_class``
optional component class to use to render the view.
If set, the ``js_class`` attribute will also be used to apply a css class to the
root node of the view. For example, if ``js_class`` is set to ``my-custom-kanban``,
then the class ``o_my-custom-kanban_view`` will be applied on the root node.
.. _reference/views/inheritance:
Inheritance