Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
prv-proton committed Jan 8, 2025
1 parent 76f2cda commit 420e361
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/BCDataGrid/BCDataGridServer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ const BCDataGridServer = ({

// Memorized default column definition parameters
const defaultColDefParams = useMemo(() => ({
// headerComponent: AccessibleHeader,
headerComponentParams: {
innerHeaderComponent: AccessibleHeader
},
suppressHeaderFilterButton: true,
resizable: true,
sortable: true,
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/components/BCDataGrid/BCGridViewer.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import BCAlert, { FloatingAlert } from '@/components/BCAlert'
import BCBox from '@/components/BCBox'
import { BCGridBase } from '@/components/BCDataGrid/BCGridBase'
import { AccessibleHeader, BCPagination } from '@/components/BCDataGrid/components'
import {
AccessibleHeader,
BCPagination
} from '@/components/BCDataGrid/components'
import '@ag-grid-community/styles/ag-grid.css'
import '@ag-grid-community/styles/ag-theme-material.css'
import { useCallback, useMemo, useRef, useState } from 'react'
Expand Down Expand Up @@ -161,7 +164,9 @@ export const BCGridViewer = ({

const defaultColDefParams = useMemo(
() => ({
// headerComponent: AccessibleHeader,
headerComponentParams: {
innerHeaderComponent: AccessibleHeader
},
suppressHeaderFilterButton: true,
resizable: true,
sortable: true,
Expand Down

0 comments on commit 420e361

Please sign in to comment.