From c0e13b0cd9089f467017e71406c4af2bc5932da8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 26 Jul 2021 11:26:00 +0300 Subject: [PATCH] Fixed #1278 - No exportFunction, it's called but not defined. --- api-generator/components/datatable.js | 6 ++++++ src/components/datatable/DataTable.vue | 4 ++++ src/views/datatable/DataTableDoc.vue | 6 ++++++ 3 files changed, 16 insertions(+) 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