diff --git a/api-generator/components/datatable.js b/api-generator/components/datatable.js index 9e38efb68..c8e4253bb 100644 --- a/api-generator/components/datatable.js +++ b/api-generator/components/datatable.js @@ -197,6 +197,12 @@ const DataTableProps = [ default: "download", description: "Name of the exported file." }, + { + name: "exportFunction", + type: "function", + default: "null", + description: "Custom function to export data." + }, { name: "autoLayout", type: "boolean", diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 710ca51c1..b6d1105f9 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -215,6 +215,10 @@ export default { type: String, default: 'download' }, + exportFunction: { + type: Function, + default: null + }, autoLayout: { type: Boolean, default: false diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index 873225fe2..945a99a6b 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -2033,6 +2033,12 @@ export default { string download Name of the exported file. + + + exportFunction + function + download + Custom function to export data. autoLayout