Group Management
A mechanism that allows the chip to be assigned to a group so that chips in the same group behave like radio buttons, ensuring only one chip is selected at a time.
Overview
Key Points
Aspect
Details
Best Practices
Practice
Explanation
Code Example: Setting and Handling Group Management
// Creating two chips and assigning them to the same group.
var chip1 = new SiticoneGroupChip();
var chip2 = new SiticoneGroupChip();
// Set the Group property for both chips.
chip1.Group = "PaymentMethods";
chip2.Group = "PaymentMethods";
// Subscribe to the GroupChanged event.
chip1.GroupChanged += (sender, e) =>
{
Console.WriteLine($"Chip 1 group changed to: {e.NewGroup}");
};
chip2.GroupChanged += (sender, e) =>
{
Console.WriteLine($"Chip 2 group changed to: {e.NewGroup}");
};
// Dynamically change the group at runtime.
chip1.Group = "AlternativeMethods";Common Pitfalls
Pitfall
Explanation
Code Example: Avoiding Pitfalls
Usage Scenarios
Scenario
Description
Code Example: Payment Option Selection
Real Life Usage Scenarios
Real Life Scenario
Example
Code Example: Dashboard Filter Chips
Troubleshooting Tips
Tip
Details
Review
Review Aspect
Comments
Summary
Additional Sections
Integration Checklist
Item
Check
FAQ
Question
Answer
Last updated