Skip to content

@sqlrooms/sql-editor / QueryResultPanelProps

Interface: QueryResultPanelProps

Properties

className?

optional className: string

Custom class name for styling


renderActions()?

optional renderActions: (query) => ReactNode

Custom actions to render in the query result panel

Parameters

ParameterType
querystring

Returns

ReactNode


fontSize?

optional fontSize: string

Custom font size for the table e.g. text-xs, text-sm, text-md, text-lg, text-base


onRowClick()?

optional onRowClick: (args) => void

Called when a row in the results table is clicked.

Parameters

ParameterType
args{ row: Row<any>; event: MouseEvent<HTMLTableRowElement>; }
args.rowRow<any>
args.eventMouseEvent<HTMLTableRowElement>

Returns

void


onRowDoubleClick()?

optional onRowDoubleClick: (args) => void

Called when a row in the results table is double-clicked.

Parameters

ParameterType
args{ row: Row<any>; event: MouseEvent<HTMLTableRowElement>; }
args.rowRow<any>
args.eventMouseEvent<HTMLTableRowElement>

Returns

void