Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.9.0 <= v < 1.0.0

Ui.StickyPanel

A panel that sticks to the given element.

States

left
:
Number
=
0

Variable for the left position.

top
:
Number
=
0

Variable for the right position.

Properties

content
:
Html
=
Html.empty()

The content to position.

element
:
Html
=
Html.empty()

The element to position against.

offset
:
Number
=
0

The offset of the panel.

passThrough
:
Bool
=
false

If true, pointer events will pass through the panel.

position
:
Ui.Position
=
Ui.Position::BottomLeft

The position of the panel.

shouldCalculate
:
Bool
=
true

A flag that decides if the position should be calculated on animation frames.

zIndex
:
Number
=
0

The z-index of the panel.

Functions

calculatePosition
(
position
:
Ui.Position
dimensions
:
Dom.Dimensions
panel
:
Dom.Dimensions
)
:
Dom.Dimensions

Calculates the position from the dimensions of the panel and element.

render
:
Array(Html)

Renders the element and the panel.

updateDimensions
(
timestamp
:
Number
)
:
Promise(Void)

Calculates the position of the panel.