Constructor
new PopupMenuPosition(leftopt, topopt, rightopt, bottomopt)
Provide at least two coordinates to determine the absolute position of the
PopupMenu in a browser or in a webview.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
left |
number |
<optional> |
Left horizontal offset |
top |
number |
<optional> |
Top vertical offset |
right |
number |
<optional> |
Right horizontal offset |
bottom |
number |
<optional> |
Bottom vertical offset |
- Source:
Methods
(static) alignBottomLeft(domElement)
Places the PopupMenu under the provided dom element. Aligns the left border
of the PopupMenu with the left border of the provided dom element.
Parameters:
Name | Type | Description |
---|---|---|
domElement |
HTMLElement | The menu will be displayed under this element |
- Source:
(static) alignBottomRight(domElement)
Places the PopupMenu under the provided dom element. Aligns the right
border of the PopupMenu with the right border of the provided dom element.
Parameters:
Name | Type | Description |
---|---|---|
domElement |
HTMLElement | The menu will be displayed under this element. |
- Source:
(static) alignTopLeft(domElement)
Places the PopupMenu on the top of the provided dom element. Aligns the left
border of the PopupMenu with the left border of the provided dom element.
Parameters:
Name | Type | Description |
---|---|---|
domElement |
HTMLElement | The menu will be displayed on top of this element. |
- Source:
(static) alignTopRight(domElement)
Places the PopupMenu on the top of the provided dom element. Aligns the right
border of the PopupMenu with the right border of the provided dom element.
Parameters:
Name | Type | Description |
---|---|---|
domElement |
HTMLElement | The menu will be displayed on top of this element. |
- Source: