A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Pass cellSelection to table state (#4021)
Florian Verdonck77a75cbe0937
diff --git a/frontend/src/components/data-table/data-table.tsx b/frontend/src/components/data-table/data-table.tsxindex b6ae97c99a..d7ca6e38b0 100644--- a/frontend/src/components/data-table/data-table.tsx+++ b/frontend/src/components/data-table/data-table.tsx@@ -54,6 +54,7 @@ interface DataTableProps<TData> extends Partial<DownloadActionProps> {// Selectionselection?: DataTableSelection;rowSelection?: RowSelectionState;+ cellSelection?: CellSelectionState;onRowSelectionChange?: OnChangeFn<RowSelectionState>;onCellSelectionChange?: OnChangeFn<CellSelectionState>;getRowIds?: GetRowIds;@@ -82,6 +83,7 @@ const DataTableInternal = <TData,>({sorting,setSorting,rowSelection,+ cellSelection,paginationState,setPaginationState,downloadAs,@@ -169,6 +171,7 @@ const DataTableInternal = <TData,>({: // No pagination, show all rows{ pagination: { pageIndex: 0, pageSize: data.length } }),rowSelection,+ cellSelection,columnPinning: columnPinning,},onColumnPinningChange: setColumnPinning,diff --git a/frontend/src/plugins/impl/DataTablePlugin.tsx b/frontend/src/plugins/impl/DataTablePlugin.tsxindex 0bbad91f86..182d311013 100644--- a/frontend/src/plugins/impl/DataTablePlugin.tsx+++ b/frontend/src/plugins/impl/DataTablePlugin.tsx@@ -604,6 +604,7 @@ const DataTableComponent = ({paginationState={paginationState}setPaginationState={setPaginationState}rowSelection={rowSelection}+ cellSelection={cellSelection}downloadAs={showDownload ? downloadAs : undefined}enableSearch={enableSearch}searchQuery={searchQuery}