update datatable docstring (#854)

added more description to data and columns props docs
This commit is contained in:
Elijah Ahianyo 2023-04-21 21:03:25 +00:00 committed by GitHub
parent 5db622c7d4
commit 59d693bff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,10 +19,11 @@ class DataTable(Gridjs):
tag = "Grid"
# The data to display. Either a list of dictionaries or a pandas dataframe.
# The data to display. Either a list of lists or a pandas dataframe.
data: Any
# The columns to display.
# The list of columns to display. Required if data is a list and should not be provided
# if the data field is a dataframe
columns: Var[List]
# Enable a search bar.