Audit
value
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Supports Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | The className of the component | |
| style | object | The style of the component | ||
| formEntityDataId | number | ✔️ | When the rowData property is not provided, the table will send a request to obtain data from this formEntityDataId | |
| dataUrl | string | /form/api/form-entity-data-audit/list-group/${formEntityDataId} | ✔️ | When the rowData attribute is not provided, the table will send a request to obtain data from this dataUrl |
| translateDataResponse | bool | false | Is the translation request result required | |
| sortModel | Array<SortModel> | How to sort data | ||
| rowData | Array<object> | ag-grid table data |
All remaining componentsProps will be passed to the component root element (Table)。
SortModel
| Name | Type | Default | Description |
|---|---|---|---|
| colId | string | Sort field id | |
| sort | 'asc' | 'desc' | 'asc' | Order in descending order |
| sortType | 'text' | 'number' | 'date' | 'text' | What type of values are sorted |
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | The root DOM element of the component |
| gridApi | object | Ag-Grid's API interface, official document |