Skip to content

DefinePluginSlots

Defined in: definePlugin.ts:173

Slot render function definitions for defineSlotPlugin

TData

TSchema extends z.ZodType

optional cell: object

Defined in: definePlugin.ts:192

Cell slot - custom cell renderer for all columns (first match wins)

render: (cell, column, row) => ReactNode

Render function. Use usePluginArgs() inside to access args.

Cell<TData, unknown>

Column<TData, unknown>

Row<TData>

ReactNode


optional footer: object

Defined in: definePlugin.ts:187

Footer slot - renders below the table

render: () => ReactNode

Render function - return a React component. Use usePluginArgs() inside to access args.

ReactNode


optional header: object

Defined in: definePlugin.ts:182

Header slot - renders between table header and body

render: () => ReactNode

Render function - return a React component. Use usePluginArgs() inside to access args.

ReactNode


optional inlineRow: object

Defined in: definePlugin.ts:201

Inline row slot - renders below a specific row when opened (first match wins)

render: (row) => ReactNode

Render function. Use usePluginArgs() inside to access args.

Row<TData>

ReactNode


optional sidePanel: object

Defined in: definePlugin.ts:175

SidePanel slot - renders in left or right side panel

optional header: string | (context) => ReactNode

position: PluginPosition

render: () => ReactNode

Render function - return a React component. Use usePluginArgs() inside to access args.

ReactNode