type
Description
Optional. Defines the type of the FilterBuilder presentationUsage
type?: "simple" | "list" | "line";
Parameters
Mode types can be the following:
simple- fields are displayed vertically with restrictions: each field can be used once and rules are combined with "and" logicline- fields are displayed horizontally in a linelist- (default) fields are displayed vertically as a list
Example
<script>
import { getData } from "./common/data";
import { FilterBuilder } from "@svar-ui/svelte-filter";
const { value, fields, options } = getData();
</script>
<FilterBuilder {value} {fields} {options} type={"line"} />
Related articles: FilterBuilder Guide