DataTable component displays the results of a Python function or SQL file execution in a table.
<DataTable 
  loadData="aggregate_py" 
  hederKeys={['name', 'email', 'department']}
  height={300} 
/>

Properties

loadData
string
required
Name of the Python function or SQL file.
varialbes
{ [key: string]: any }
Variables to pass to the Python function or SQL file. Declare using the defineState() function.
headerKeys
string[]
Name of the columns to show. You can specify the order too.
height
number
Height of the component. Unit is px.