EAnchor Anchor
Examples
Anchor
Properties
boundrealTolerance for selecting the current anchor in pixels.
1currentIndexintIndex of the current selected or displayed item.
-1: no selection
0 and above: item index
-1directionintComponent layout direction.
EOrientation.HorizontalEOrientation.Vertical
EOrientation.VerticaldurationintAnimation or display duration in milliseconds; the component binding identifies its use.
0enabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightmarkerboolShow the current anchor marker.
truemodelvarComponent data source; item structure follows the current example and component contract.
[]offsetrealOffset relative to layout, scroll target or popup reference, in pixels.
0selectScrollTopboolSelect the first anchor when at the scroll top.
falsetargetItemTarget item for scrolling, positioning or the loading overlay.
nulltypestringDisplay style of the anchor indicator.
"default" / "underline"
"default"visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthitemsvarRead onlyNormalized or transformed item list.
Computed at runtimescrollableboolRead onlyResolved scroll object for the anchor target.
Computed at runtimeSignals
changed(int index, var item)Emitted when the active anchor changes; index is its index and item is its data.
clicked(int index, var item)Emitted when an anchor is clicked; index is its index and item is its data.
Methods
scrollTo(index)Scroll to the target of the anchor at index.