From 59d693bff1c253aa0d4b0ffa223642c891cc4a25 Mon Sep 17 00:00:00 2001 From: Elijah Ahianyo Date: Fri, 21 Apr 2023 21:03:25 +0000 Subject: [PATCH] update datatable docstring (#854) added more description to data and columns props docs --- pynecone/components/datadisplay/datatable.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pynecone/components/datadisplay/datatable.py b/pynecone/components/datadisplay/datatable.py index a3ef5b7a6..2ec6baa91 100644 --- a/pynecone/components/datadisplay/datatable.py +++ b/pynecone/components/datadisplay/datatable.py @@ -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.