Skip to content

Commit c561407

Browse files
authored
ui fix (#1645)
1 parent 61a8f33 commit c561407

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

docs/enterprise/ag_grid/aligned-grids.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Aligned Grids
44

55
AgGrid provides a way to align multiple grids together. This is useful when you want to display related data in a synchronized manner.
66

7-
You can do so through the `aligned_grids` prop. This prop takes a list of grid IDs that you want to align.
7+
You can do so through the `aligned_grids` prop. This prop takes a list of grid IDs that you want to align.
88

99
```python demo exec
1010
import pandas as pd
11-
11+
import reflex as rx
1212
import reflex_enterprise as rxe
1313

1414
# Olympic winners data (originally from https://www.ag-grid.com/example-assets/olympic-winners.json)
@@ -41,18 +41,21 @@ column_defs = [
4141

4242
def aligned_grids_page():
4343
"""Aligned grids demo."""
44-
return rxe.ag_grid(
45-
id="grid1",
46-
column_defs=column_defs,
47-
row_data=row_data,
48-
aligned_grids=["grid2"],
49-
width="100%",
50-
), rxe.ag_grid(
51-
id="grid2",
52-
column_defs=column_defs,
53-
row_data=row_data,
54-
aligned_grids=["grid1"],
55-
width="100%",
44+
return rx.el.div(
45+
rxe.ag_grid(
46+
id="grid1",
47+
column_defs=column_defs,
48+
row_data=row_data,
49+
aligned_grids=["grid2"],
50+
width="100%",
51+
), rxe.ag_grid(
52+
id="grid2",
53+
column_defs=column_defs,
54+
row_data=row_data,
55+
aligned_grids=["grid1"],
56+
width="100%",
57+
),
58+
class_name="flex flex-col gap-y-6 w-full"
5659
)
5760

5861
```

0 commit comments

Comments
 (0)