DataTable component displays the results of a Python function or SQL file execution in a table.

<DataTable 
  alias="aggregate_py" 
  variable={{
    department
  }}
  hederKeys={['name', 'email', 'department']}
  height={300} 
/>

Properties

alias
string
required

Name of the Python function or SQL file.

varialbes
{ [key: string]: Variable }

Variables to pass to the Python function or SQL file. Declare using the variable() function.

headerKeys
string[]

Name of the columns to show. You can specify the order too.

width
number

Width of the element.