# GridFooter

###

You can create a footer for grid columns. The value for "column" specifies the target column.

The following parameter can be supplied:

* **“column”:** name for the target column
* **“select”:** will specify the Range for data selection. Possible values are **“all”** or **“visible”**. **“all”** is the default setting and will select all available data from this column. With **“visible”** only data matching a selection will be processed. If no selection is active, all data will be shown.
* **“action”:** will specify what action will be taken for the given data. Possible values are **“sum”**, **“avg”** (average), **“min”** (minimum), **“max”** (maximum). **“sum”** is the default.
* **“decimalDigits”:** If you are using a config based grid the decimal digit setting will be inherited from the column setting. Otherwise the default will be 0. If u want to overwrite this behavior this setting can be used.
* **“textLeading”:** Add a text in front of the value.
* **“textTrailing”:** Add a text behind the value.

```
//the following will give a sum for all data for the column "cordGrossValue"
[
   {
      "column":"cordGrossValue"
   } 
]

//the following will give an average for the visible data within a selection. If no selection is activ all data will be processed
[
   {
      "column":"cordGrossValue",
      "select":"visible",
      "action":"avg"
   } 
]


//the following will give one decimal digit for the value and add leading and trailing text. e.g. "Total: 123.4 $"
[
   {
      "column":"cordGrossValue",
      "decimalDigits": 1,
      "textLeading": "Total: ",
      "textTrailing": " $",
   } 
]
```


---

# 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://brixxbox.gitbook.io/brixxbox-documentation/configuration/app-editor/app-editor-properties/gridfooter.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.
