Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AlignOptions

Option for aligning element.

Hierarchy

  • AlignOptions

Index

Properties

Optional canShrinkInY

canShrinkInY: undefined | boolean

If true, when el contains high content and should be cutted in viewport, it will be shrinked and with overflow: y set.

Optional fixTriangle

fixTriangle: undefined | boolean

Should align triangle in a fixed position. Default value is false, means triangle will be adjusted to be in the center of the edge of el or target.

Optional margin

margin: undefined | number | number[]

The margin as gaps betweens align element and target, can be a number or a number array composed of 1-4 numbers. Unique number will only work in main direction.

Optional triangle

triangle: undefined | HTMLElement

The triangle element in el, which should set will be adjusted left or top to the middle of the touched place of el and target.

Generated using TypeDoc