@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
Parameter | Type |
---|---|
query | string |
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
Parameter | Type |
---|---|
args | { row : Row <any >; event : MouseEvent <HTMLTableRowElement >; } |
args.row | Row <any > |
args.event | MouseEvent <HTMLTableRowElement > |
Returns
void
onRowDoubleClick()?
optional
onRowDoubleClick: (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