Docs · API reference · Verso.Abstractions

ICellInteractionHandler Interface#

Supplemental interface for extensions that handle bidirectional interactions from rendered cell content. Implement alongside a primary capability interface (e.g. IDataFormatter + ICellInteractionHandler). Implementing ICellInteractionHandler alone is not a valid extension capability.

public interface ICellInteractionHandler

Methods#

OnCellInteractionAsync(CellInteractionContext) Method#

Called when the host receives an interaction event from rendered cell content.

System.Threading.Tasks.Task<string?> OnCellInteractionAsync(Verso.Abstractions.CellInteractionContext context);

Parameters#

context CellInteractionContext

Describes the interaction that occurred.

Returns#

System.Threading.Tasks.Task<System.String>
An optional response string to send back to the client, or null if no response is needed.