From 3013334a8de31f9cbf1c9684d97df85e8e01727f Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 23 Apr 2020 09:30:34 +0300 Subject: [PATCH] Fixed #284 - FilterPlaceholder for Listbox --- src/components/listbox/Listbox.d.ts | 1 + src/components/listbox/Listbox.vue | 3 ++- src/views/listbox/ListboxDoc.vue | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/listbox/Listbox.d.ts b/src/components/listbox/Listbox.d.ts index 17bcb5096..e50df407f 100644 --- a/src/components/listbox/Listbox.d.ts +++ b/src/components/listbox/Listbox.d.ts @@ -12,6 +12,7 @@ export declare class Listbox extends Vue { multiple?: boolean; metaKeySelection?: boolean; filter?: boolean; + filterPlaceholder?: string; filterLocale?: string; ariaLabelledBy?: string; $emit(eventName: 'input', value: any): this; diff --git a/src/components/listbox/Listbox.vue b/src/components/listbox/Listbox.vue index 4c6611ac9..8c6e1872d 100644 --- a/src/components/listbox/Listbox.vue +++ b/src/components/listbox/Listbox.vue @@ -2,7 +2,7 @@
- +
@@ -36,6 +36,7 @@ export default { multiple: Boolean, metaKeySelection: Boolean, filter: Boolean, + filterPlaceholder: String, filterLocale: String }, optionTouched: false, diff --git a/src/views/listbox/ListboxDoc.vue b/src/views/listbox/ListboxDoc.vue index de208486a..54c5d8d0a 100644 --- a/src/views/listbox/ListboxDoc.vue +++ b/src/views/listbox/ListboxDoc.vue @@ -137,6 +137,12 @@ data() { false When specified, displays a filter input at header. + + filterPlaceholder + string + null + Placeholder text to show when filter input is empty. + filterLocale string