ClassTaskBoardCardState
Holds the runtime view-state of a single board card, produced from a CardData
item via TaskBoardCardDescriptor.
Stores the display Index and Status assigned and managed
by the board at runtime.
Id uses an init setter for serialization support but must not be
changed at runtime. Index and Status have public setters so
consumers and SetStateAsync(TaskBoardState<TColumn>) can restore
card positions.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TaskBoardCardState
Inheritance: objectTaskBoardCardState
Constructors
TaskBoardCardState()
Initializes a new instance of the TaskBoardCardState class. Required for deserialization scenarios (e.g. restoring state after page reload). Set at least Id so that SetStateAsync(TaskBoardState<TColumn>) can match this entry to a live card.
Declaration
public TaskBoardCardState()
Properties
Id
Gets the unique identifier of the card. Matched against each card's CardIdField
value to restore the card's position.
Used by SetStateAsync(TaskBoardState<TColumn>) to match saved state
entries to live cards.
Set only during initialization or deserialization; changing at runtime is not supported.
Index
Gets or sets the zero-based display position of this card within its column. Lower values appear higher in the column. Updated when the user reorders cards.