Add placeholder prop to ToolbarSearch

This commit is contained in:
Andreas 2022-06-16 17:10:32 +02:00
commit efc9fd6d08

View file

@ -16,6 +16,9 @@
/** Set to `true` to disable the search bar */ /** Set to `true` to disable the search bar */
export let disabled = false; 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. * Set to `true` to filter table rows using the search value.
* *
@ -91,6 +94,7 @@
tabindex="{tabindex}" tabindex="{tabindex}"
disabled="{disabled}" disabled="{disabled}"
{...$$restProps} {...$$restProps}
placeholder="{placeholder}"
searchClass="{classes} {$$restProps.class}" searchClass="{classes} {$$restProps.class}"
bind:ref bind:ref
bind:value bind:value