+ onGroupingEnabled(true)}>
+ Grouping On
+
+ onGroupingEnabled(false)}>
+ Grouping Off
+
+ setSelectedToGroup('A')}>Move to Group A
+ setSelectedToGroup('B')}>Move to Group B
+ setSelectedToGroup('C')}>Move to Group C
+
-
- onGroupingEnabled(true)}>
- Grouping On
-
- onGroupingEnabled(false)}>
- Grouping Off
-
- setSelectedToGroup('A')}>Move to Group A
- setSelectedToGroup('B')}>Move to Group B
- setSelectedToGroup('C')}>Move to Group C
-
-
-
-
-
+
+
+
+
-
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/basic-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/basic-example/provided/reactFunctionalTs/index.tsx
index 1c8d0f10077..c94c4a825c9 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/basic-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/basic-example/provided/reactFunctionalTs/index.tsx
@@ -4,11 +4,9 @@ import { createRoot } from 'react-dom/client';
// Theme
import type { ColDef } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
+import { AllCommunityModule } from 'ag-grid-community';
// Core CSS
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Row Data Interface
interface IRow {
@@ -37,9 +35,11 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-
-
-
+
+
+
+
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/cell-renderer-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/cell-renderer-example/provided/reactFunctionalTs/index.tsx
index 79d71501622..763c17468d2 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/cell-renderer-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/cell-renderer-example/provided/reactFunctionalTs/index.tsx
@@ -1,15 +1,11 @@
// React Grid Logic
-import React, { StrictMode, useEffect, useMemo, useState } from 'react';
+import React, { StrictMode, useMemo, useState } from 'react';
import { createRoot } from 'react-dom/client';
-// Theme
import type { ColDef, ValueFormatterParams } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
-// Core CSS
+import { AllCommunityModule } from 'ag-grid-community';
import type { CustomCellRendererProps } from 'ag-grid-react';
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Custom Cell Renderer (Display logos based on cell value)
const CompanyLogoRenderer = (params: CustomCellRendererProps) => (
@@ -82,16 +78,18 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-
- {/* The AG Grid component, with Row Data & Column Definition props */}
-
-
+
+
+ {/* The AG Grid component, with Row Data & Column Definition props */}
+
+
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/configure-columns-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/configure-columns-example/provided/reactFunctionalTs/index.tsx
index 061239fc8c3..846db84ed8f 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/configure-columns-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/configure-columns-example/provided/reactFunctionalTs/index.tsx
@@ -2,13 +2,9 @@
import React, { StrictMode, useState } from 'react';
import { createRoot } from 'react-dom/client';
-// Theme
import type { ColDef } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
-// Core CSS
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AllCommunityModule } from 'ag-grid-community';
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Row Data Interface
interface IRow {
@@ -40,10 +36,12 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-
- {/* The AG Grid component, with Row Data & Column Definition props */}
-
-
+
+
+ {/* The AG Grid component, with Row Data & Column Definition props */}
+
+
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/default-columns-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/default-columns-example/provided/reactFunctionalTs/index.tsx
index d6aeed4f780..6b5b2ce7f66 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/default-columns-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/default-columns-example/provided/reactFunctionalTs/index.tsx
@@ -2,13 +2,9 @@
import React, { StrictMode, useMemo, useState } from 'react';
import { createRoot } from 'react-dom/client';
-// Theme
import type { ColDef } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
-// Core CSS
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AllCommunityModule } from 'ag-grid-community';
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Row Data Interface
interface IRow {
@@ -47,10 +43,12 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-
- {/* The AG Grid component, with Row Data & Column Definition props */}
-
-
+
+
+ {/* The AG Grid component, with Row Data & Column Definition props */}
+
+
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-events-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-events-example/provided/reactFunctionalTs/index.tsx
index 93459e3d4f6..1ef0df4d914 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-events-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-events-example/provided/reactFunctionalTs/index.tsx
@@ -2,14 +2,10 @@
import React, { StrictMode, useMemo, useState } from 'react';
import { createRoot } from 'react-dom/client';
-// Theme
import type { ColDef, ValueFormatterParams } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
-// Core CSS
+import { AllCommunityModule } from 'ag-grid-community';
import type { CustomCellRendererProps } from 'ag-grid-react';
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Custom Cell Renderer (Display logos based on cell value)
const CompanyLogoRenderer = (params: CustomCellRendererProps) => (
@@ -83,17 +79,19 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-
- {/* The AG Grid component, with Row Data & Column Definition props */}
- console.log(`New Cell Value: ${event.value}`)}
- />
-
+
+
+ {/* The AG Grid component, with Row Data & Column Definition props */}
+ console.log(`New Cell Value: ${event.value}`)}
+ />
+
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-options-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-options-example/provided/reactFunctionalTs/index.tsx
index f4ec3ab3958..e7511d12a5d 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-options-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/grid-options-example/provided/reactFunctionalTs/index.tsx
@@ -2,13 +2,9 @@
import React, { StrictMode, useMemo, useState } from 'react';
import { createRoot } from 'react-dom/client';
-// Theme
import type { ColDef } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
-// Core CSS
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AllCommunityModule } from 'ag-grid-community';
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Row Data Interface
interface IRow {
@@ -47,16 +43,18 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-
- {/* The AG Grid component, with Row Data & Column Definition props */}
-
-
+
+
+ {/* The AG Grid component, with Row Data & Column Definition props */}
+
+
+
);
};
diff --git a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/testing-example/provided/reactFunctionalTs/index.tsx b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/testing-example/provided/reactFunctionalTs/index.tsx
index 77b27171a97..3c12456aac0 100644
--- a/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/testing-example/provided/reactFunctionalTs/index.tsx
+++ b/documentation/ag-grid-docs/src/content/docs/deep-dive/_examples/testing-example/provided/reactFunctionalTs/index.tsx
@@ -2,14 +2,10 @@
import React, { StrictMode, useMemo, useState } from 'react';
import { createRoot } from 'react-dom/client';
-// Theme
import type { ColDef, RowSelectionOptions, ValueFormatterParams } from 'ag-grid-community';
-import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
-// Core CSS
+import { AllCommunityModule } from 'ag-grid-community';
import type { CustomCellRendererProps } from 'ag-grid-react';
-import { AgGridReact } from 'ag-grid-react';
-
-ModuleRegistry.registerModules([AllCommunityModule]);
+import { AgGridProvider, AgGridReact } from 'ag-grid-react';
// Custom Cell Renderer (Display logos based on cell value)
const CompanyLogoRenderer = (params: CustomCellRendererProps) => (
@@ -121,18 +117,20 @@ const GridExample = () => {
// Container: Defines the grid's theme & dimensions.
return (
-