-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FluentWizard] New component #1211
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1211.westeurope.3.azurestaticapps.net |
vnbaaij
approved these changes
Dec 28, 2023
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1211.westeurope.3.azurestaticapps.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
FluentWizard - New component
Wizards are a step-by-step user interface used to break down complex tasks into digestible pieces. The simplified layout allows the reader to more easily understand the scope of a given task and the actions needed to complete the task.
By default, steps are displayed on the left, but you can move them to the top of the component. They are in the form of circular bubbles, with a check mark indicating whether it has been processed or not. They are not numbered, but the DisplayStepNumber property can be used to add this numbering. It's also possible to customize these bubbles via the IconPrevious, IconCurrent and IconNext properties.
The order of the steps must be defined when designing the Wizard. However, it is possible to enable or disable a step via the Disabled property.
By default, the contents of all steps are hidden and displayed when the user arrives at that that step (for display performance reasons). But the DeferredLoading property property reverses this process and generates the contents of the active step only.
The Label and Summary properties display the name and a small summary of the step below or next to the bubble. The StepTitleHiddenWhen property is used to hide this title and summary when the screen width is reduced, for example on mobile devices. By default, the value XsAndDown is applied to hide this data on cell phones (< 600px).
All these areas (bubbles on the left/top and navigation buttons at the bottom) are fully customizable using the StepTemplate and ButtonTemplate properties (see the second example). You can customize button labels using the ButtonTemplate or by modifying the static properties FluentWizard.LabelButtonPrevious / LabelButtonNext / LabelButtonDone.
Examples
Unit Tests