public class PopupPositionLeftRight extends Object implements PopupPosition
I.e. if showing the popover on the left will exceed the window, then it will be better to show it on the right
BEST_FIT, BOTTOM, LEFT, LEFT_RIGHT, RIGHT, TOP, TOP_DOWN| Constructor and Description |
|---|
PopupPositionLeftRight() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDirectionClass() |
void |
position(elemental2.dom.HTMLElement popup,
elemental2.dom.HTMLElement target)
Positions the popover based on the target element
|
public void position(elemental2.dom.HTMLElement popup,
elemental2.dom.HTMLElement target)
position in interface PopupPositionpopup - the popover elementtarget - the target elementpublic String getDirectionClass()
getDirectionClass in interface PopupPositionCopyright © 2019–2022 Dominokit. All rights reserved.