Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions custom_components/reflex_ag_grid/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,19 @@ def _delete_button(cls) -> rx.Component:
on_click=cls.delete_selected,
)

@classmethod
def _refresh_button(cls) -> rx.Component:
"""Create the refresh button."""
return rx.icon_button(
"refresh-cw",
on_click=cls._grid_component.api.refreshInfiniteCache,
)

@classmethod
def _top_toolbar(cls) -> rx.Component:
"""Create the top toolbar."""
return rx.hstack(
cls._refresh_button(),
cls._delete_button(),
cls._add_dialog(),
justify="end",
Expand Down