Class
TaskBoardCardTemplateContext<TItem, TColumn>

The context object passed to the CardTemplate render fragment. Provides the typed card data item, the runtime state of the column, and built-in command methods.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

The type of the card data items.

TColumn

The type of the column data items.

Syntax:

cs-api-definition
public class TaskBoardCardTemplateContext<TItem, TColumn>

Inheritance: objectTaskBoardCardTemplateContext<TItem, TColumn>

Constructors

TaskBoardCardTemplateContext()

Declaration

cs-api-definition
public TaskBoardCardTemplateContext()

Properties

ColumnState

The runtime state of the column this card belongs to, including its display index, status, and configuration.

Declaration

cs-api-definition
public TaskBoardColumnState<TColumn> ColumnState { get; init; }

Property Value

TaskBoardColumnState<TColumn>

DeleteCardAsync

Deletes this card (with confirmation if ConfirmDelete is enabled). Equivalent to selecting "Delete Card" from the built-in actions menu.

Declaration

cs-api-definition
public Func<Task> DeleteCardAsync { get; init; }

Property Value

Func<Task>

EditCardAsync

Opens the card edit pane for this card. Equivalent to selecting "Edit Card" from the built-in actions menu.

Declaration

cs-api-definition
public Func<Task> EditCardAsync { get; init; }

Property Value

Func<Task>

Item

The typed card data item from the CardData collection.

Declaration

cs-api-definition
public TItem Item { get; init; }

Property Value

TItem