ETour Tour
Examples
Placement, masks and target interaction
Tour
Properties
closeOnPressEscapeboolAllow Escape to close the component.
trueclosePolicyenumAutomatic popup closing conditions; flags can be combined.
Popup.* (combine with |)
NoAutoClose
CloseOnPressOutside
CloseOnPressOutsideParent
CloseOnReleaseOutside
CloseOnReleaseOutsideParent
CloseOnEscape
closeOnPressEscape ? Popup.CloseOnEscape : Popup.NoAutoClosecurrentStepintCurrent tour step index, starting at 0.
0descriptionDelegateComponentComponent slot for custom description; null uses the default content. See this page’s examples for delegate context.
nullenabledboolAllow interaction; false disables the control.
truefocusboolWhether the popup requests focus.
truegapvarWatermark gap array or tour highlight gap settings.
Fields:
offset, radius
({ offset: 6, radius: 4 })headerDelegateComponentComponent slot for custom header; null uses the default content. See this page’s examples for delegate context.
nullheightrealComponent size in pixels; may be bound to its parent layout.
Dynamic bindingindicatorsDelegateComponentComponent slot for custom tour indicators; null uses the default content. See this page’s examples for delegate context.
nullmaskboolShow a mask; scrollbars also support edge-fade mask settings.
truemaskColorcolorMask color.
Dynamic bindingmodalboolUse a modal popup that blocks interaction with underlying content.
!targetAreaClickableplacementstringPosition of the tour card relative to its target.
"top" / "top-start""top-end" / "bottom""bottom-start" / "bottom-end""left" / "left-start""left-end" / "right""right-start" / "right-end"
"bottom"scrollIntoViewboolScroll the target into view when starting a step.
truescrollIntoViewOptionsvarScroll positioning options with behavior, block and inline.
Fields:
block, inline
({block: "center", inline: "nearest"})showArrowboolShow the popup or tour arrow.
trueshowCloseboolShow a close or remove button.
truestepsvarArray of tour step data.
Fields:
target, title, description
placement, type, mask
headerDelegate, descriptionDelegate, nextButtonProps
prevButtonProps, scrollIntoViewOptions
[]targetAreaClickableboolAllow clicking the target in the tour highlight area.
falsetypestringVisual style of the tour card.
"default" / "primary"
"default"visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
Dynamic bindingcardPositionpointRead onlyComputed coordinates of the tour card.
Fields: x, y
Computed at runtimeeffectiveMaskboolRead onlyResolved mask visibility for the current tour step.
Computed at runtimeeffectivePlacementstringRead onlyPosition of the tour card relative to its target.
"top" / "top-start""top-end" / "bottom""bottom-start" / "bottom-end""left" / "left-start""left-end" / "right""right-start" / "right-end"
Computed at runtimeeffectiveScrollOptionsvarRead onlyScroll options used by the current tour step.
Fields:
block, inline
Computed at runtimeeffectiveTypestringRead onlyVisual style used by the current tour step.
"default" / "primary"
Computed at runtimefinalStepboolRead onlyWhether this is the final tour step.
Computed at runtimegapOffsetrealRead onlyActual gap between tour highlight and target.
Computed at runtimegapRadiusrealRead onlyTour highlight corner radius.
Computed at runtimehighlightrectRead onlyGeometry of the tour target highlight.
Fields: x, y, width, height
Computed at runtimenextButtonPropsvarRead onlyNext or previous button settings for the current tour step.
Fields:
text, visible, disabled
size, styleType
Computed at runtimepreviousButtonPropsvarRead onlyNext or previous button settings for the current tour step.
Fields:
text, visible, disabled
size, styleType
Computed at runtimestepvarRead onlyIncrement step; sliders may override stepSize, while time-select uses minutes or HH:mm.
Computed at runtimestepCountintRead onlyTotal tour step count.
Computed at runtimetargetItemRead onlyTarget item for scrolling, positioning or the loading overlay.
Computed at runtimetargetPositionpointRead onlyComputed target coordinates and dimensions for affix or tour.
Fields: x, y
Computed at runtimeSignals
finished()Emitted when the tour finishes.
changed(int index)Emitted when the tour step changes; index is the current step index.
Methods
previous()Move to the previous item or step.
start()Start the tour at the first step.
next()Move to the next item or step.
goTo(index)Go to the tour step at index.