[IMP] developer: more info for usePosition JS hook

closes odoo/documentation#1305

Signed-off-by: Bruno Boi <boi@odoo.com>
This commit is contained in:
Bruno Boi 2021-11-10 08:45:47 +00:00
parent 7c0c6c44bf
commit 43d838d826

View File

@ -109,6 +109,13 @@ resized/scrolled.
}
MyPopover.template = owl.tags.xml`<div>I am positioned through a wonderful hook!</div>`
.. note::
The following CSS classes can be used to style the target HTMLElement:
- `o-popper-position`
- `o-popper-position--{D}{V}` where `{D}` and `{V}` are replaced by the first letter of the corresponding Direction and Variant (see Options table below for valid directions and variants). E.g.: for position `bottom-end`, the class name will be `o-popper-position--be`.
API
---