Skip to content

Home > @liquidrazor/list-display > CustomModalRenderContext

CustomModalRenderContext interface

Context provided to a custom modal renderer. Extends general context and optionally carries row info.

Signature:

typescript
export interface CustomModalRenderContext<TRow = any, TRowId = string | number> extends GeneralActionContext<TRow, TRowId>

Extends: GeneralActionContext<TRow, TRowId>

Properties

Property

Modifiers

Type

Description

close

() => void

Close the modal without necessarily performing the action.

row?

TRow

(Optional)

rowIndex?

number

(Optional)

submit

(payload?: unknown) => void

Complete the modal interaction and optionally pass a payload to the action handler.