added support for limits in pagination (#1646)

This commit is contained in:
wassaf shahzad 2023-08-22 00:42:34 -07:00 committed by GitHub
parent 0ce77c1ca9
commit 42e9924273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
"""Table components.""" """Table components."""
from typing import Any, List from typing import Any, Dict, List, Union
from reflex.components.component import Component from reflex.components.component import Component
from reflex.components.tags import Tag from reflex.components.tags import Tag
@ -38,7 +38,7 @@ class DataTable(Gridjs):
resizable: Var[bool] resizable: Var[bool]
# Enable pagination. # Enable pagination.
pagination: Var[bool] pagination: Var[Union[bool, Dict]]
@classmethod @classmethod
def create(cls, *children, **props): def create(cls, *children, **props):