move other ones as well

This commit is contained in:
Khaleel Al-Adhami 2024-10-31 11:05:32 -07:00
parent c76feeeed6
commit 7298c671b8
2 changed files with 3 additions and 3 deletions

View File

@ -424,7 +424,7 @@ class DataEditor(NoSSRComponent):
props["theme"] = DataEditorTheme(**theme) props["theme"] = DataEditorTheme(**theme)
# Allow by default to select a region of cells in the grid. # Allow by default to select a region of cells in the grid.
props.setdefault("get_cell_for_selection", True) props.setdefault("get_cells_for_selection", True)
# Disable on_paste by default if not provided. # Disable on_paste by default if not provided.
props.setdefault("on_paste", False) props.setdefault("on_paste", False)

View File

@ -140,7 +140,7 @@ class DataEditor(NoSSRComponent):
] = None, ] = None,
data: Optional[Union[List[List[Any]], Var[List[List[Any]]]]] = None, data: Optional[Union[List[List[Any]], Var[List[List[Any]]]]] = None,
get_cell_content: Optional[Union[Var[str], str]] = None, get_cell_content: Optional[Union[Var[str], str]] = None,
get_cell_for_selection: Optional[Union[Var[bool], bool]] = None, get_cells_for_selection: Optional[Union[Var[bool], bool]] = None,
on_paste: Optional[Union[Var[bool], bool]] = None, on_paste: Optional[Union[Var[bool], bool]] = None,
draw_focus_ring: Optional[Union[Var[bool], bool]] = None, draw_focus_ring: Optional[Union[Var[bool], bool]] = None,
fixed_shadow_x: Optional[Union[Var[bool], bool]] = None, fixed_shadow_x: Optional[Union[Var[bool], bool]] = None,
@ -228,7 +228,7 @@ class DataEditor(NoSSRComponent):
columns: Headers of the columns for the data grid. columns: Headers of the columns for the data grid.
data: The data. data: The data.
get_cell_content: The name of the callback used to find the data to display. get_cell_content: The name of the callback used to find the data to display.
get_cell_for_selection: Allow selection for copying. get_cells_for_selection: Allow selection for copying.
on_paste: Allow paste. on_paste: Allow paste.
draw_focus_ring: Controls the drawing of the focus ring. draw_focus_ring: Controls the drawing of the focus ring.
fixed_shadow_x: Enables or disables the overlay shadow when scrolling horizontally. fixed_shadow_x: Enables or disables the overlay shadow when scrolling horizontally.