Skip to content

Commit ed927cc

Browse files
authored
add demo url for AG Grid (#1599)
1 parent 37ebfee commit ed927cc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/enterprise/ag_grid/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ from pcweb.pages.docs import enterprise
99

1010
# AG Grid
1111

12+
AG Grid is a powerful, feature-rich data grid component that brings enterprise-grade table functionality to your Reflex applications. With support for sorting, filtering, pagination, row selection, and much more, AG Grid transforms how you display and interact with tabular data.
13+
14+
[Explore the full AG Grid showcase and examples](https://aggrid.reflex.run/)
1215

1316
## Your First Reflex AG Grid
1417

@@ -575,7 +578,7 @@ def ag_grid_api_simple():
575578

576579
📊 **Dataset source:** [gapminder2007.csv](https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv)
577580

578-
The react code for the `select_all()` event handler is `selectAll = (source?: SelectionEventSourceType) => void;`.
581+
The react code for the `select_all()` event handler is `selectAll = (source?: SelectionEventSourceType) => void;`.
579582

580583
To use this in Reflex as you can see, it should be called in snake case rather than camel case. The `void` means it doesn't return anything. The `source?` indicates that it takes an optional `source` argument.
581584

@@ -673,8 +676,6 @@ def ag_grid_api_argument():
673676
)
674677
```
675678

676-
The react code for the `get_data_as_csv` method of the AG Grid API is `getDataAsCsv = (params?: CsvExportParams) => string | undefined;`. Here the function returns a `string` (or undefined).
677-
678-
In Reflex to handle this returned value it is necessary to pass a `callback` as an argument to the `get_data_as_csv` method that will get the returned value. In this example the `handle_get_data` event handler is passed as the callback. This event handler will be called with the returned value from the `get_data_as_csv` method.
679-
679+
The react code for the `get_data_as_csv` method of the AG Grid API is `getDataAsCsv = (params?: CsvExportParams) => string | undefined;`. Here the function returns a `string` (or undefined).
680680

681+
In Reflex to handle this returned value it is necessary to pass a `callback` as an argument to the `get_data_as_csv` method that will get the returned value. In this example the `handle_get_data` event handler is passed as the callback. This event handler will be called with the returned value from the `get_data_as_csv` method.

0 commit comments

Comments
 (0)