added support for limits in pagination (#1646)
This commit is contained in:
parent
0ce77c1ca9
commit
42e9924273
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user