From 03cc6483ac75fc19c73a4c123564e3970b3cb68e Mon Sep 17 00:00:00 2001 From: Bryan Rankin Date: Tue, 5 Sep 2017 21:38:49 -0400 Subject: [PATCH] Added dropdown filter option (#56) Added dropdown filter option and updated README.md --- README.md | 15 +++++++++++++++ src/components/Table.vue | 16 +++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d76b253..6b62bee2 100644 --- a/README.md +++ b/README.md @@ -356,9 +356,24 @@ data() { filterable (optional) + enables filtering on column + Boolean + + + filterTextInput (optional) provides the column with a filter input Boolean + + filterDropdown (optional) + provides a dropdown for filtering + Boolean + + + filterOptions (required for filterDropdown) + provides options to dropdown filter filterOptions: ['Blue', 'Red', 'Yellow'] + Array + filter (optional) Custom filter, function of two variables: function(data, filterString), diff --git a/src/components/Table.vue b/src/components/Table.vue index b99c0b12..ee2390bf 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -32,9 +32,19 @@ - +
+ + + +