From 42e9924273a032ebd32ecd6191d04e5778b756d8 Mon Sep 17 00:00:00 2001 From: wassaf shahzad Date: Tue, 22 Aug 2023 00:42:34 -0700 Subject: [PATCH] added support for limits in pagination (#1646) --- reflex/components/datadisplay/datatable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/components/datadisplay/datatable.py b/reflex/components/datadisplay/datatable.py index 880e375406..2fe6528739 100644 --- a/reflex/components/datadisplay/datatable.py +++ b/reflex/components/datadisplay/datatable.py @@ -1,6 +1,6 @@ """Table components.""" -from typing import Any, List +from typing import Any, Dict, List, Union from reflex.components.component import Component from reflex.components.tags import Tag @@ -38,7 +38,7 @@ class DataTable(Gridjs): resizable: Var[bool] # Enable pagination. - pagination: Var[bool] + pagination: Var[Union[bool, Dict]] @classmethod def create(cls, *children, **props):