From 43d838d8261a1c86d6766b3d8fd5ca07eb6cd9c0 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Wed, 10 Nov 2021 08:45:47 +0000 Subject: [PATCH] [IMP] developer: more info for usePosition JS hook closes odoo/documentation#1305 Signed-off-by: Bruno Boi --- content/developer/reference/frontend/hooks.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/developer/reference/frontend/hooks.rst b/content/developer/reference/frontend/hooks.rst index ef28fbf5f..d4a1977cc 100644 --- a/content/developer/reference/frontend/hooks.rst +++ b/content/developer/reference/frontend/hooks.rst @@ -109,6 +109,13 @@ resized/scrolled. } MyPopover.template = owl.tags.xml`
I am positioned through a wonderful hook!
` + +.. 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 ---