# Configuration Files

**FieldConfiguration for DataTable**

* `table` object, required
  * `name` string
  * `update` (object)
    * `mutationName` string
    * `mutationTable` string
    * `where`
* `fields` object, contains field objects
  * `{field_object}`
    * `label` string, if not provided DataTable will default to "Unknown"
    * `labelStyle` optional, style class
    * `type` options are "date", "boolean" or "string". if not provided, data table defaults to "string"
    * `emptyValue` if not provided, data table defaults to "None"
    * `placeholder` string, what should the field have as a placeholder
    * `editable` Boolean, if not provided defaults to True
    * `multiline` boolean
    * `multiline` rows
    * `nullable` Boolean, false if field cannot be set to empty string
    * `errorMessage` string, optional
    * `widthsmallandlarger` int, sets `<Grid sm=widthSmallAndLarger>`, if not provided, defaults to 6
    * `dependent field` if theres a field that needs to be updated along with current field
    * `options` DataTable comment says this must exist for select field if no lookup object provided
    * `lookup` (object) used for select input fields
      * `table` name of table used in lookup query
      * `fieldlabel` needed for lookup table query
      * `fieldvalue` needed for lookup table query
      * `relationship` if not provided, relationship defaults to ""
      * `style`
      * `format` function to format data for display


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://atd-dts.gitbook.io/moped-documentation/dev-guides/api/configuration-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
