diff --git a/reflex/components/datadisplay/dataeditor.py b/reflex/components/datadisplay/dataeditor.py index 7edb7e580..ecef03b38 100644 --- a/reflex/components/datadisplay/dataeditor.py +++ b/reflex/components/datadisplay/dataeditor.py @@ -244,6 +244,7 @@ class DataEditor(NoSSRComponent): "on_finished_editing": lambda new_value, movement: [new_value, movement], "on_row_appended": lambda: [], "on_selection_cleared": lambda: [], + "on_column_resize": lambda col, width: [col, width], } def _get_hooks(self) -> str | None: diff --git a/reflex/components/datadisplay/dataeditor.pyi b/reflex/components/datadisplay/dataeditor.pyi index 756215e80..cddc7ec86 100644 --- a/reflex/components/datadisplay/dataeditor.pyi +++ b/reflex/components/datadisplay/dataeditor.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Dict, Union, Literal, overload, List, Any, Optional +from typing import List, Any, Optional, Literal, overload, Dict, Union from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style @@ -115,6 +115,9 @@ class DataEditor(NoSSRComponent): on_cell_edited: Optional[ Union[EventHandler, EventSpec, List, function, BaseVar] ] = None, + on_column_resize: Optional[ + Union[EventHandler, EventSpec, List, function, BaseVar] + ] = None, on_delete: Optional[ Union[EventHandler, EventSpec, List, function, BaseVar] ] = None,