DomPoint
A position object which instances are created and used by the getOptimalPosition
helper.
top
and left
properties of the position instance
translate directly to the top
and left
properties in CSS "position: absolute
coordinate system". If set on the positioned element
in DOM, they will make it display it in the right place in the viewport.
Properties
-
config : object | undefined
readonlymodule:utils/dom/position~DomPoint#config
Additional position configuration, as passed from the positioning function.
This object can be use, for instance, to pass through presentation options used by the consumer of the
getOptimalPosition
helper. -
left : number
readonlymodule:utils/dom/position~DomPoint#left
The left value in pixels in the CSS
position: absolute
coordinate system. Set it on the positioned element in DOM to move it to the position. -
name : string | undefined
readonlymodule:utils/dom/position~DomPoint#name
Position name.
-
top : number
readonlymodule:utils/dom/position~DomPoint#top
The top value in pixels in the CSS
position: absolute
coordinate system. Set it on the positioned element in DOM to move it to the position.