@sqlrooms/sql-editor / QueryResultPanelProps
Interface: QueryResultPanelProps
Properties
className?
optionalclassName:string
Custom class name for styling
renderActions()?
optionalrenderActions: (query) =>ReactNode
Custom actions to render in the query result panel
Parameters
| Parameter | Type |
|---|---|
query | string |
Returns
ReactNode
fontSize?
optionalfontSize:string
Custom font size for the table e.g. text-xs, text-sm, text-md, text-lg, text-base
onRowClick()?
optionalonRowClick: (args) =>void
Called when a row in the results table is clicked.
Parameters
| Parameter | Type |
|---|---|
args | { row: Row<any>; event: MouseEvent<HTMLTableRowElement>; } |
args.row | Row<any> |
args.event | MouseEvent<HTMLTableRowElement> |
Returns
void
onRowDoubleClick()?
optionalonRowDoubleClick: (args) =>void
Called when a row in the results table is double-clicked.
Parameters
| Parameter | Type |
|---|---|
args | { row: Row<any>; event: MouseEvent<HTMLTableRowElement>; } |
args.row | Row<any> |
args.event | MouseEvent<HTMLTableRowElement> |
Returns
void
onAskAiAboutError()?
optionalonAskAiAboutError: (query,error) =>void
Called when the "Ask AI" button is clicked on an error message. Receives the current query and error text.
Parameters
| Parameter | Type |
|---|---|
query | string |
error | string |
Returns
void
