Closed mcm-odoo closed 2 years ago
this one is actually even more interesting once we implement multiple roots components, because in that case, there is no canonical way to decide where the class attribute should be applied
done in owl 2 (class and style are now normal props)
Would be nice to have something to define where
class
andstyle
attributes are bound in a component.for the example, the root element of a dialog is a portal so writing
<Dialog class="my-dialog" t-att-class="...">...
will bound classes on the portal element. We need to use a props to define where it should bind.e.g.
Why not having a directive or something similar to Vue3's component attributes (https://v3.vuejs.org/guide/component-attrs.html) or a mix of the two?