interface FilterControlProps {
    filterButtonHref?: string;
    filterButtonLabel?: string;
    filterDisplay: "singleLine" | "multiLine";
    filterPlaceholder?: string;
    filters: Filter[];
    isDisabled?: boolean;
    onFiltersChange: ((newFilters) => void);
    onNavigate?: ((url) => void);
    onSearchChange?: ((newSearch) => void);
    searchDefaultValue?: string;
    searchPlaceholder?: string;
}

Properties

filterButtonHref?: string

Href for the apply filter button

filterButtonLabel?: string

Label for the apply filter button

filterDisplay: "singleLine" | "multiLine"

Whether to display filter items on a single line (with left-right scroll) or multiple lines

filterPlaceholder?: string

Placeholder to display in the filter component when no filters selected

filters: Filter[]

Current state of filters

isDisabled?: boolean

Disables changes while loading or similar

onFiltersChange: ((newFilters) => void)

Callback when a filter is removed (x button clicked)

Type declaration

    • (newFilters): void
    • Callback when a filter is removed (x button clicked)

      Parameters

      Returns void

onNavigate?: ((url) => void)

Standard onNavigate callback

Type declaration

    • (url): void
    • Standard onNavigate callback

      Parameters

      • url: string

      Returns void

onSearchChange?: ((newSearch) => void)

Callback when search text is changed and then enter pressed

Type declaration

    • (newSearch): void
    • Callback when search text is changed and then enter pressed

      Parameters

      • newSearch: string

      Returns void

searchDefaultValue?: string

Default value for the search (on first load)

searchPlaceholder?: string

Placeholder to display in the search component when no text entered

Generated using TypeDoc