Skip to content
Last updated

Position

WidgetPosition is a union of the possible values for the position property of the InitPayload. It can be either a string literal or an object. The string literal is used to set the position of the widget The object is used to set the position of the widget and the padding from the edge of the screen.

type WidgetPosition = 'WidgetPositionSimple' | 'WidgetPositionAdvanced';

Type WidgetPositionSimple

String literal union: "bottomLeft" | "bottomRight"

Interface WidgetPositionAdvanced

WidgetPositionAdvanced: Object

Advanced widget position options, which includes the padding options

Type declaration

NameType
horizontalPadding?number
position"bottomLeft" | "bottomRight" (WidgetPositionSimple)
verticalPadding?number