859263: Add dynamic Variant switching example in Blazor Message variants documentation - #9943
859263: Add dynamic Variant switching example in Blazor Message variants documentation#9943kaliraj2026 wants to merge 3 commits into
Conversation
…nts documentation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
…lazor-docs into 859263-message
|
The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit. |
|
CI Status: ABORTED ❌ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
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)