859263: Add dynamic Variant switching example in Blazor Message variants documentation - #9944
Open
kaliraj2026 wants to merge 1 commit into
Open
859263: Add dynamic Variant switching example in Blazor Message variants documentation#9944kaliraj2026 wants to merge 1 commit into
kaliraj2026 wants to merge 1 commit into
Conversation
…nts documentation
Contributor
|
Build Status: INPROGRESS 🔃 |
Contributor
|
CI Status: SUCCESS ✅ |
This file contains hidden or 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
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.
Description
Documentation (859263): Add dynamic Variant switching example in Blazor Message variants documentation.
Issue
The Variants documentation page demonstrates only hardcoded
MessageVariantvalues and does not include an example showing how theVariantproperty can be changed dynamically through C# code at runtime. This may make it difficult for users to understand how to update the message appearance based on user interactions or application state.Solution
Added a new documentation section, "Change Variant Dynamically", that demonstrates binding the
Variantproperty to a C# field and updating it at runtime using aSfDropDownList. This example showcases practical usage of dynamic variant switching and addresses scenarios such as user preference-based UI customization.Code Studio usage(Mandatory)
Code Studio used in this PR/MR?
If
Yes: Primary use (choose one)Outcome
If “Cost time” explain in short (1 or 2 lines):
Type of Change
Reviewer Checklist (Mandatory)