From f7b2492c82e959bce47cf84affc6191f84472fbc Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 2 Jul 2019 15:57:03 +0300 Subject: [PATCH] Filtering for DataTable --- src/components/column/Column.vue | 8 ++ src/components/datatable/DataTable.vue | 63 +++++++++++ src/router.js | 5 + src/views/datatable/DataTableFilterDemo.vue | 119 ++++++++++++++++++++ 4 files changed, 195 insertions(+) create mode 100644 src/views/datatable/DataTableFilterDemo.vue diff --git a/src/components/column/Column.vue b/src/components/column/Column.vue index 0c2ac72e6..2c133ecf5 100644 --- a/src/components/column/Column.vue +++ b/src/components/column/Column.vue @@ -49,6 +49,14 @@ export default { footerClass: { type: String, default: null + }, + filterMatchMode: { + type: String, + default: 'startsWith' + }, + excludeGlobalFilter: { + type: Boolean, + default: false } }, render() { diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 903a47da9..c1865efee 100644 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -21,6 +21,7 @@ {{col.header}} + @@ -66,6 +67,7 @@ + +