From 35d6cf003c5f5a50ca22b25dc544646561ec5064 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sun, 5 Dec 2021 20:19:17 +0300 Subject: [PATCH] Update dataTable doc and api-gen --- api-generator/components/datatable.js | 6 ++++++ src/views/datatable/DataTableDoc.vue | 20 ++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/api-generator/components/datatable.js b/api-generator/components/datatable.js index 4ab85dbccf..919ac7b917 100644 --- a/api-generator/components/datatable.js +++ b/api-generator/components/datatable.js @@ -323,6 +323,12 @@ const DataTableProps = [ default: "null", description: 'Height of the scroll viewport in fixed units or the "flex" keyword for a dynamic size.' }, + { + name: "virtualScrollerOptions", + type: "object", + default: "null", + description: 'Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it. Note: Currently only vertical orientation mode is supported.' + }, { name: "frozenValue", type: "array", diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index c1a50bfd7b..09e395af13 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -452,6 +452,15 @@ export default { field: Column field
filterModel: {value,matchMode} Filter metadata
filterCallback: Callback function + + + loading + data: Row data
+ column: Column node
+ field: Column field
+ index: Row index
+ frozenRow: Is row frozen
+ loadingOptions: Loading options. @@ -1126,7 +1135,7 @@ export default {

Individual cell editing is configured by setting the editMode to cell, defining editors with the editor template along with the @cell-edit-complete event. The content of the - editor defines how the editing is implemented. The editor template receives a clone of the row data and using @cell-edit-complete event the new value can be updated to the model or cancelled. + editor defines how the editing is implemented. The editor template receives a clone of the row data and using @cell-edit-complete event the new value can be updated to the model or cancelled. This also provides flexibility to apply conditional logic such as implementing validations.