You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove toggle format from enterprise docs - show code below examples (#1514)
- Changed all instances of ```python demo exec toggle to ```python demo exec
- Affects 20 enterprise documentation files across AG Grid, Mantine components, drag-and-drop, and maps
- Code examples now appear below rendered components instead of in toggle tabs
- Improves documentation UX by showing code and UI together
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek <[email protected]>
Co-authored-by: Carlos <[email protected]>
Copy file name to clipboardExpand all lines: docs/enterprise/ag_grid/aligned-grids.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ AgGrid provides a way to align multiple grids together. This is useful when you
6
6
7
7
You can do so through the `aligned_grids` prop. This prop takes a list of grid IDs that you want to align.
8
8
9
-
```python demo exec toggle
9
+
```python demo exec
10
10
import pandas as pd
11
11
12
12
import reflex_enterprise as rxe
@@ -58,4 +58,4 @@ def aligned_grids_page():
58
58
59
59
```md alert warning
60
60
# The pivot functionality does not work with aligned grids. This is because pivoting data changes the columns, which would make the aligned grids incompatible, as they are no longer sharing the same set of columns.
Copy file name to clipboardExpand all lines: docs/enterprise/ag_grid/index.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ A basic Reflex AG Grid contains column definitions `column_defs`, which define t
21
21
22
22
Each grid also requires a unique `id`, which is needed to uniquely identify the Ag-Grid instance on the page. If you have multiple grids on the same page, each grid must have a unique `id` so that it can be correctly rendered and managed.
23
23
24
-
```python demo exec toggle
24
+
```python demo exec
25
25
import reflex as rx
26
26
import reflex_enterprise as rxe
27
27
import pandas as pd
@@ -56,7 +56,7 @@ The format of the data passed to the `row_data` prop is a list of dictionaries.
56
56
57
57
The previous example showed the `column_defs` written out in full. You can also extract the required information from the dataframe's column names:
58
58
59
-
```python demo exec toggle
59
+
```python demo exec
60
60
import reflex as rx
61
61
import reflex_enterprise as rxe
62
62
import pandas as pd
@@ -78,7 +78,7 @@ def ag_grid_simple_2():
78
78
79
79
In the above example, the first letter of the field names provided are capitalized when displaying the header name. You can customize the header names by providing a `header_name` key in the column definition. In this example, the `header_name` is customized for the second and third columns.
80
80
81
-
```python demo exec toggle
81
+
```python demo exec
82
82
import reflex as rx
83
83
import reflex_enterprise as rxe
84
84
import pandas as pd
@@ -106,7 +106,7 @@ def ag_grid_simple_headers():
106
106
107
107
Allow a user to filter a column by setting the `filter` key to `True` in the column definition. In this example we enable filtering for the first and last columns.
108
108
109
-
```python demo exec toggle
109
+
```python demo exec
110
110
import reflex as rx
111
111
import reflex_enterprise as rxe
112
112
import pandas as pd
@@ -138,7 +138,7 @@ You can also set the filter type using the `filter` key. The following filter ty
138
138
139
139
(`ag_grid.filters.set` and `ag_grid.filters.multi` are available with AG Grid Enterprise)
140
140
141
-
```python demo exec toggle
141
+
```python demo exec
142
142
import reflex as rx
143
143
import reflex_enterprise as rxe
144
144
import pandas as pd
@@ -169,7 +169,7 @@ By default, the rows can be sorted by any column by clicking on the column heade
169
169
170
170
In this example, we disable sorting for the first column.
Row Selection is enabled using the `row_selection` attribute. Setting it to `multiple` allows users to select multiple rows at a time. You can use the `checkbox_selection` column definition attribute to render checkboxes for selection.
199
199
200
-
```python demo exec toggle
200
+
```python demo exec
201
201
import reflex as rx
202
202
import reflex_enterprise as rxe
203
203
import pandas as pd
@@ -283,7 +283,7 @@ def ag_grid_simple_editing():
283
283
284
284
By default, the grid uses a vertical scroll. You can reduce the amount of scrolling required by adding pagination. To add pagination, set `pagination=True`. You can set the `pagination_page_size` to the number of rows per page and `pagination_page_size_selector` to a list of options for the user to select from.
285
285
286
-
```python demo exec toggle
286
+
```python demo exec
287
287
import reflex as rx
288
288
import reflex_enterprise as rxe
289
289
import pandas as pd
@@ -529,7 +529,7 @@ The example below uses the `select_all()` and `deselect_all()` methods of the AG
529
529
# Ensure that the docs are set to React tab in AG Grid
The following example lets a user [export the data as a csv](https://www.ag-grid.com/javascript-data-grid/grid-api/#reference-export-exportDataAsCsv) and [adjust the size of columns to fit the available horizontal space](https://www.ag-grid.com/javascript-data-grid/grid-api/#reference-columnSizing-sizeColumnsToFit). (Try resizing the screen and then clicking the resize columns button)
582
582
583
583
584
-
```python demo exec toggle
584
+
```python demo exec
585
585
import reflex as rx
586
586
import reflex_enterprise as rxe
587
587
import pandas as pd
@@ -661,6 +661,6 @@ def ag_grid_api_argument():
661
661
662
662
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).
663
663
664
-
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.
664
+
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.
Copy file name to clipboardExpand all lines: docs/enterprise/ag_grid/value-transformers.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ TOC:
22
22
23
23
If you have two columns `col_a` and `col_b` and you want to display the sum of these two columns in a third column `sum`, you can define the `value_getter` of `sum` as follows:
24
24
25
-
```python demo exec toggle
25
+
```python demo exec
26
26
import reflex as rx
27
27
import reflex_enterprise as rxe
28
28
import pandas as pd
@@ -52,7 +52,7 @@ def ag_grid_value_getter():
52
52
53
53
If you have a column `price` and you want to display the price with a currency symbol, you can define the `value_formatter` of `price` as follows:
Copy file name to clipboardExpand all lines: docs/enterprise/mantine/autocomplete.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ title: Autocomplete
6
6
7
7
`rxe.mantine.autocomplete` is a component for providing suggestions as the user types. It is useful for enhancing user experience by offering relevant options based on input.
Copy file name to clipboardExpand all lines: docs/enterprise/mantine/collapse.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ title: Collapse
6
6
7
7
`rxe.mantine.collapse` is a component that allows you to create collapsible sections in your application. It is useful for hiding or showing content based on user interaction, such as clicking a button or a link.
Copy file name to clipboardExpand all lines: docs/enterprise/mantine/loading-overlay.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Loading Overlay
5
5
# Loading Overlay component
6
6
`rxe.mantine.loading_overlay` is a component that displays a loading overlay on top of its children. It is useful for indicating that a process is ongoing and prevents user interaction with the underlying content.
0 commit comments