BcSpinCard
Description
The BcSpinCard component provides a number input control with increment and decrement buttons inside a card UI. It supports customizable step values, minimum and maximum limits.
Parameters
Value
T
The current numeric value of the spin card.
ValueChanged
Action < T >
An event callback that is triggered when the value changes.
Title
string?
The main title text displayed in the spin card.
SubTitle
string?
The subtitle text displayed below the title in the spin card.
CardType
BcCardType
Specifies the type of the card, affecting its styling.
StatusColor
BcStatusColor
Determines the status color of the spin card, which affects its visual appearance.
Step
T
The step value used for increasing or decreasing the number.
Min
T?
The minimum allowed value for the spin control.
Max
T?
The maximum allowed value for the spin control.
Methods
Increments the value by the defined step, ensuring it does not exceed the maximum value.
Decrements the value by the defined step, ensuring it does not go below the minimum value.
Sample
This is a Int32 Spin Card
With + and - you can modify the Int32 Value
This is a Decimal Spin Card
Steps are set to 0.5