From aaab0cd654e01fb08a14d0e86411a9f42c536e33 Mon Sep 17 00:00:00 2001 From: Akshay Anand Date: Sat, 18 Nov 2017 11:34:08 -0500 Subject: [PATCH 1/2] update readme to show placeholer option --- README.md | 5 +++++ src/components/Table.vue | 25 +++++++++++++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3ad3a496..40f6f5c7 100644 --- a/README.md +++ b/README.md @@ -481,6 +481,11 @@ myStyleFn(row){ enables filtering on column (By default, creates a text input) Boolean + + placeholder + placeholder to use for filter input + String + filterDropdown provides a dropdown for filtering instead of a text input diff --git a/src/components/Table.vue b/src/components/Table.vue index 98274339..2cfe43b0 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -21,6 +21,7 @@ - +
{{ getPlaceholder(column) }} @@ -61,21 +65,30 @@ :value="columnFilters[column.field]" v-on:input="updateFilters(column, $event.target.value)"> - + -
- + {{ getCurrentIndex(index) }} - + {{ collectFormatted(row, column) }} From 0c6c244de26ea1db5b9e9688245a1fd583d62940 Mon Sep 17 00:00:00 2001 From: Akshay Anand Date: Sat, 18 Nov 2017 12:04:55 -0500 Subject: [PATCH 2/2] fix custom perPage for pagination --- dev/App.vue | 18 +++++++++++++++++- src/components/Pagination.vue | 5 +++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dev/App.vue b/dev/App.vue index d39597e1..b033ca35 100644 --- a/dev/App.vue +++ b/dev/App.vue @@ -1,6 +1,10 @@