Explorar o código

update datatable docstring (#854)

added more description to data and columns props docs
Elijah Ahianyo %!s(int64=2) %!d(string=hai) anos
pai
achega
59d693bff1
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      pynecone/components/datadisplay/datatable.py

+ 3 - 2
pynecone/components/datadisplay/datatable.py

@@ -19,10 +19,11 @@ class DataTable(Gridjs):
 
 
     tag = "Grid"
     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
     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]
     columns: Var[List]
 
 
     # Enable a search bar.
     # Enable a search bar.