public class PopupPositionBestFit extends Object implements PopupPosition
I.e. if the popover will exceed the window from the bottom, then it will be better to show it on the top
BEST_FIT, BOTTOM, LEFT, LEFT_RIGHT, RIGHT, TOP, TOP_DOWN| Constructor and Description |
|---|
PopupPositionBestFit() |
| 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
|
protected void |
position(elemental2.dom.HTMLElement popup,
elemental2.dom.HTMLElement target,
PopupPosition popupPosition) |
public void position(elemental2.dom.HTMLElement popup,
elemental2.dom.HTMLElement target)
position in interface PopupPositionpopup - the popover elementtarget - the target elementprotected void position(elemental2.dom.HTMLElement popup,
elemental2.dom.HTMLElement target,
PopupPosition popupPosition)
public String getDirectionClass()
getDirectionClass in interface PopupPositionCopyright © 2019–2022 Dominokit. All rights reserved.