add column resize for data editor (#2099)
This commit is contained in:
parent
fbedc9447e
commit
eeeab441d8
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user