Skip to content

Commit c8cecbf

Browse files
authored
fix typo in dataeditor prop (#4281)
* fix typo in dataeditor prop * move other ones as well
1 parent a968231 commit c8cecbf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

reflex/components/datadisplay/dataeditor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class DataEditor(NoSSRComponent):
206206
get_cell_content: Var[str]
207207

208208
# Allow selection for copying.
209-
get_cell_for_selection: Var[bool]
209+
get_cells_for_selection: Var[bool]
210210

211211
# Allow paste.
212212
on_paste: Var[bool]
@@ -424,7 +424,7 @@ def create(cls, *children, **props) -> Component:
424424
props["theme"] = DataEditorTheme(**theme)
425425

426426
# Allow by default to select a region of cells in the grid.
427-
props.setdefault("get_cell_for_selection", True)
427+
props.setdefault("get_cells_for_selection", True)
428428

429429
# Disable on_paste by default if not provided.
430430
props.setdefault("on_paste", False)

reflex/components/datadisplay/dataeditor.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class DataEditor(NoSSRComponent):
140140
] = None,
141141
data: Optional[Union[List[List[Any]], Var[List[List[Any]]]]] = None,
142142
get_cell_content: Optional[Union[Var[str], str]] = None,
143-
get_cell_for_selection: Optional[Union[Var[bool], bool]] = None,
143+
get_cells_for_selection: Optional[Union[Var[bool], bool]] = None,
144144
on_paste: Optional[Union[Var[bool], bool]] = None,
145145
draw_focus_ring: Optional[Union[Var[bool], bool]] = None,
146146
fixed_shadow_x: Optional[Union[Var[bool], bool]] = None,
@@ -228,7 +228,7 @@ class DataEditor(NoSSRComponent):
228228
columns: Headers of the columns for the data grid.
229229
data: The data.
230230
get_cell_content: The name of the callback used to find the data to display.
231-
get_cell_for_selection: Allow selection for copying.
231+
get_cells_for_selection: Allow selection for copying.
232232
on_paste: Allow paste.
233233
draw_focus_ring: Controls the drawing of the focus ring.
234234
fixed_shadow_x: Enables or disables the overlay shadow when scrolling horizontally.

0 commit comments

Comments
 (0)