BcExpandComboCard
Description
The BcExpandComboCard component is an expandable card that displays a selectable list of items. It provides a user-friendly way to choose an option from a dropdown-style list within a card UI.
Sample
This is a Combo Card
Clicking on this card allows you to select a value
Parameters
Value
TItem?
The currently selected value from the list.
ValueChanged
Action
An event callback that is triggered when the selected value changes.
Values
List < TItem >
A list of items that can be selected within the expandable card.
DisplayText
Func
A function that determines the display text for each item in the list.
DescriptionText
Func
A function that determines the description text for each item in the list.
ChildContent
RenderFragment < TItem >
Defines custom rendering for the items in the expandable list.
Title
string?
The main title text displayed in the expandable card.
SubTitle
string?
The subtitle text displayed below the title in the expandable card.
CardType
BcCardType
Specifies the type of the card, affecting its styling.
StatusColor
BcStatusColor
Determines the status color of the expandable card, which affects its visual appearance.
Methods
Toggles the expanded state of the card, showing or hiding the selectable items.
Selects an item from the expandable list and collapses the card.