Skip to content

Commit

Permalink
feat: ✨ ag grid cell selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Nov 17, 2023
1 parent c4fa805 commit 81be7d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/ag-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-ag-grid",
"version": "2.0.3",
"version": "2.0.4",
"type": "module",
"private": false,
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "6.0.0",
"version": "6.0.1",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { GridOptionPopover } from './GridOptionsPopover';
export type GridWrapperProps<
TData extends Record<PropertyKey, unknown>,
TContext extends Record<PropertyKey, unknown> = never,
TFilter = undefined,
TFilter = undefined
> = {
config: GridConfig<TData, TFilter>;
getIdentifier: GetIdentifier<TData>;
Expand All @@ -22,7 +22,7 @@ export type GridWrapperProps<
export const GridWrapper = <
TData extends Record<PropertyKey, unknown>,
TContext extends Record<PropertyKey, unknown> = never,
TFilter = undefined,
TFilter = undefined
>({
config,
getIdentifier,
Expand Down Expand Up @@ -88,6 +88,8 @@ export const GridWrapper = <
height={height}
context={filterState}
modules={config.modules}
enableCellTextSelection
ensureDomOrder
/>
</div>
);
Expand Down Expand Up @@ -118,6 +120,7 @@ function setDefaultColDef<TData>(
) {
gridOptions.defaultColDef = {
resizable: true,

onCellClicked: (a) => {
if (!a.data) return;
setSelected(a.data);
Expand Down

0 comments on commit 81be7d9

Please sign in to comment.