From efc9fd6d08e57c06402c3bf4d49ec3a063dfc7b5 Mon Sep 17 00:00:00 2001 From: Andreas Date: Thu, 16 Jun 2022 17:10:32 +0200 Subject: [PATCH] Add placeholder prop to `ToolbarSearch` --- src/DataTable/ToolbarSearch.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DataTable/ToolbarSearch.svelte b/src/DataTable/ToolbarSearch.svelte index 30e53a44..36f7000c 100644 --- a/src/DataTable/ToolbarSearch.svelte +++ b/src/DataTable/ToolbarSearch.svelte @@ -16,6 +16,9 @@ /** Set to `true` to disable the search bar */ export let disabled = false; + /** Specify the `placeholder` attribute of the search input */ + export let placeholder = "Search..."; + /** * Set to `true` to filter table rows using the search value. * @@ -91,6 +94,7 @@ tabindex="{tabindex}" disabled="{disabled}" {...$$restProps} + placeholder="{placeholder}" searchClass="{classes} {$$restProps.class}" bind:ref bind:value