Skip to content

DataViewFilters API

API reference docs for the Stash DataViewFilters component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import DataViewFilters from '@leaflink/stash/DataViewFilters.vue';

Props

NameTypeDefaultDescription
activeGroupstringundefinedThe name of the active filter group. The active filter group is determined by which instance of FilterDropdown or FilterDrawerItem is open. **Note:** This prop is required when using a "nested" `drawerStyle`, but has no effect when using a "cascade" `drawerStyle`.
drawerPropsModalPropsundefined
drawerStyleDrawerStylescascade'cascade' displays all fields within every filter group; 'nested' displays only the group names and requires clicking a group to view its fields.
filtersLabelTextstring 't(ll.filterBy)'
isLoadingfalse
onApplyOnApplyFiltersundefined
searchBarPropsSearchBarPropsundefinedProps to pass to the `SearchBar` component.
showDrawerPreviousButtonbooleanfalse
showSearchbooleantrue
useFiltersInstanceUseFiltersReturnTypeundefinedRequired when using filters. This prop should contain the return value of the `useFilters()` composable.

Slots

NameDescription
filters-label
default
drawer

Events

NameDescription
open-drawerWhen the drawer is opened
dismissWhen the drawer is dismissed
previousWhen the "Previous" button in the header is clicked
reset-groupWhen the "Reset" button is clicked while viewing a filter group
reset-allWhen one of the "Reset All" buttons is clicked