Import
import { NuiTour, type NuiTourStep } from '@needless-ui/angular/tour';NuiTour
A guided tour.
| Name | Type | Default | Description |
|---|---|---|---|
stepsInput | NuiTourStep[] | [] | The steps, in order. |
openTwo-way | boolean | false | Whether the tour is on. |
stepTwo-way | number | 0 | The step shown, from 0. |
labelsInput | Partial<NuiTourLabels> | Every text it shows, to translate. | |
finishedOutput | void | Emits when the last step is done. | |
dismissedOutput | number | Emits the step the tour ended on, when it ends early. | |
startMethod | (from?: number) => void | Starts the tour, from the first step or the one given. | |
endMethod | (finished: boolean) => void | Ends the tour, finished or dismissed. |
NuiTourStep
A step of the tour.
| Name | Type | Default | Description |
|---|---|---|---|
targetProperty | string | Element | (() => Element | null) | What it points at. Without one, the card shows in the middle. | |
titleProperty | string | The card’s title. | |
contentProperty | string | TemplateRef | Its text, or a template. | |
sideProperty | 'top' | 'bottom' | 'start' | 'end' | 'bottom' | Where the card goes beside the target. |
alignProperty | 'start' | 'center' | 'end' | 'center' | How the card lines up with the target. |
paddingProperty | number | 8 | Room around the target in the spotlight, in pixels. |
interactiveProperty | boolean | false | The target can be used while the card is up. |
beforeShowProperty | () => void | Promise<void> | Runs before the step shows. The tour waits for a promise. |