Class
TaskBoardEditPaneTemplateContext<TItem>

The context object passed to the EditPaneTemplate render fragment. Provides a cloned copy of the card data item and methods to save or cancel the edit from within the custom template.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

The type of the card data items.

Syntax:

cs-api-definition
public class TaskBoardEditPaneTemplateContext<TItem>

Inheritance: objectTaskBoardEditPaneTemplateContext<TItem>

Constructors

TaskBoardEditPaneTemplateContext()

Declaration

cs-api-definition
public TaskBoardEditPaneTemplateContext()

Properties

CancelAsync

Cancels the current edit and closes the pane without saving.

Declaration

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

Property Value

Func<Task>

Item

A shallow clone of the card data item being edited, or a new instance when adding a card. Mutate this item directly; calling SaveAsync will commit these changes.

Declaration

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

Property Value

TItem

SaveAsync

Saves the current edit and closes the pane.

Declaration

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

Property Value

Func<Task>