Skip to content

EAffix Affix ​

import EUI 1.0

Examples ​

Affix ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
appendToItem

Object to which the overlay is attached.

Defaultnull
contentalias

Content slot; declare QML child objects directly inside the component.

DefaultAlias: contentHost.data
enabledbool

Allow interaction; false disables the control.

Defaulttrue
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
offsetreal

Offset relative to layout, scroll target or popup reference, in pixels.

Default0
positionint

Fix the component to the top or bottom of the scrolling area.

EPlacement.Top
EPlacement.Bottom

DefaultEPlacement.Top
revisionint

Internal data or geometry revision that triggers dependent bindings.

Default0
targetItem

Target item for scrolling, positioning or the loading overlay.

Defaultnull
teleportedbool

Move affixed content to a separate overlay target.

Defaultfalse
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth
zIndexint

Overlay or watermark stacking order.

Default100
fixedboolRead only

Whether affix content is currently fixed.

DefaultComputed at runtime
targetPositionpointRead only

Computed target coordinates and dimensions for affix or tour.

Fields: x, y

DefaultComputed at runtime

Signals ​

SignaturePurpose
changed(bool fixed)

Emitted when the affix state changes; fixed indicates whether the content is pinned.

scrolled(real top, bool fixed)

Emitted when the target scrolls; top is its scroll position and fixed is the affix state.

Methods ​

SignaturePurpose
update()

Refresh the affix state and pinned position.

Released under the MIT License. Third-party assets retain their own licenses.