Skip to main content

fieldsSelector

Description​

Optional. Specifies whether to display the dropdown with the list of fields to select from

Works in combination with the fields property

Usage​

fieldsSelector?: boolean;

Parameters​

The property takes the next values:

  • true - (default) the dropdown with the list of fields names is displayed
  • false - no dropdown is displayed

Even if the dropdown is not displayed, but when the fields are defined, FilterEditor can still take filter settings from the fields.

Example​

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

const { fields, options } = getData();

</script>

<FilterEditor {fields} {options} fieldsSelector={false} />

Related articles: FilterEditor Guide