Wizard Module
Installation
Requirements
The wizard module depends on the htmx module, so you have to install this module as well.
Add the Module to your Project
You can install the Wizard module from NuGet with
dotnet add package Confinity.Wizard
In your Program.cs you can now register the module with the module builder by calling the AddModule method with WizardModule. See Modules documentation for more information.
Wizard Page Component
The wizard comes with a page component. Allow the page component model ConfinityWizardModel on your corresponding layout section.
Custom Result Component
There are two types of possible wizard results. A relocation result, which relocates the user to a given URL and a component result, which can render components. To allow a component to be used in the component result, just add the attribute [WizardResultComponent] to your ViewComponentModel or PageComponentModel.