Skip to main content

buttons

Description​

Optional. Defines whether to display buttons

Usage​

buttons?: boolean;

The property takes the next values:

  • true - (default) default buttons ("Cancel" and "Apply") are displayed
  • false - no buttons are displayed

Example​

In the example below we hide the buttons:

<script>
import { FilterEditor } from "@svar-ui/svelte-filter";
</script>

<FilterEditor
type="text"
options={["Alice", "Bob", "Charlie"]}
buttons={false}
/>

Related articles: FilterEditor Guide