Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
OnboardingTour class
The OnboardingTour class of Novior.MentorAgent.Abstractions.Components.
On this page
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Components. Package: Novior.MentorAgent.Abstractions.
public class OnboardingTour : ComponentBase
dotnet add package Novior.MentorAgent.AbstractionsConstructors
Section titled “Constructors”public OnboardingTour()
Properties
Section titled “Properties”public EventCallback<string> OnAsk { get; set; }
Raised with the step's ready-made question when the user taps it.
OnClose
Section titled “OnClose”public EventCallback OnClose { get; set; }
Raised when the tour is completed or skipped — both end it for good.
OnIndexChanged
Section titled “OnIndexChanged”public EventCallback<int> OnIndexChanged { get; set; }
Raised whenever the current step changes, so the host can remember where the user got to. The component itself persists nothing: it has no idea whether it is running in Blazor Server or WebAssembly, and storage is the host's business.
OnNavigate
Section titled “OnNavigate”public EventCallback<string> OnNavigate { get; set; }
Raised with the step's URL when the user asks to open that screen.
StartIndex
Section titled “StartIndex”public int StartIndex { get; set; }
Step to open on, so a tour the user left part-way through resumes instead of restarting. Out-of-range values are clamped rather than rejected — the step count can shrink between deployments, and an onboarding tour is not worth an exception.
public IReadOnlyList<MentorTourStep> Steps { get; set; }
The steps to walk through. An empty list renders nothing.
