diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index a58461ec6..b3a5c2a54 100644 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -772,7 +772,7 @@ export default { } //body - data.forEach((record, i) => { + data.forEach(record => { csv += '\n'; for (let i = 0; i < this.columns.length; i++) { let column = this.columns[i]; diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index c8a76e29d..b6872a33e 100644 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -439,7 +439,7 @@ data() { }

Filtering

-

Filtering is enabled by defining a filter template per column to populate the

filters

property of the DataTable. The filters +

Filtering is enabled by defining a filter template per column to populate the filters property of the DataTable. The filters property should be an key-value object where keys are the field name and the value is the filter value. The filter template receives the column properties via the slotProps and accepts any form element as the filter element. Default match mode is "startsWith" and this can be configured per column using the filterMatchMode property that also accepts "contains", "endsWith", "equals", "notEquals" and "in" as available modes.