Skip to main content

Interface: PopupOffset

component.PopupOffset

Interface for the popup offset with respect to its anchor point.

description An object of number arrays specifying an offset for each float direction. Negative offsets indicate left and up.

interface

example

var offset = = {    bottom: [0, 10],    bottomLeft: [-10, 10],    bottomRight: [10, 10],    center: [0, 0],    left: [-10, 0],    right: [10, 0],    top: [0, -10],    topLeft: [-10, -10],    topRight: [10, -10],}
var popup = new Popup({ offset: offset });

Properties#

bottom#

• bottom: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:27


bottomLeft#

• bottomLeft: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:28


bottomRight#

• bottomRight: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:29


center#

• center: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:30


left#

• left: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:31


right#

• right: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:32


top#

• top: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:33


topLeft#

• topLeft: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:34


topRight#

• topRight: number[]

Defined in#

component/popup/interfaces/PopupOffset.ts:35