> For the complete documentation index, see [llms.txt](https://sps-digital-tech.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sps-digital-tech.gitbook.io/docs/data-table.md).

# Data Table

## Adding a data table

Data tables have a `table_number` property to give the data table a unique id when it's added to a form. To add data to the table you need to pass in three variables:

* `column_names` - these are going to be the names for the columns. You can add as many columns as you want, just as long as the number of column names and the data match in size.
* `table_data` - this needs to be a list of tuples. Each tuple has the same number of elements as the number of column names and they need to be in the same order to match the column names.
* `table_number` - this finds the correct table to add the above data to it, thus needs to be passed as parameters with `column_names` and `table_data`.

##
