Skip to content
daisyBlazor

FilterPanel

A ready-made filter surface: a title row, your filter inputs laid out on a 12-column Grid, removable active-filter chips and Clear/Filter buttons. You own the filter state; the panel raises OnApply, OnClear and OnRemoveFilter.
Data components
Cover · <FilterPanel>
Find accounts

Active filters:

ProEurope

Examples

Wrap inputs in Item cells; build the ActiveFilters list on apply and drop entries when a chip is closed.

Filters

Active filters:

Plan: Pro
website/Examples/Data/FilterPanelBasicExample.razor Source

Custom labels

Every piece of text is a parameter, so the panel localizes cleanly.

Filtres

Filtres actifs :

EuropeEntreprise
website/Examples/Data/FilterPanelLabelsExample.razor Source

API

<FilterPanel>

DaisyBlazor.Data

Standard filter container: title row, child filter inputs, active-filter chips, and apply/clear buttons.

Parameters

  • ActiveFilters IReadOnlyList<ActiveFilter>
    = null

    Optional list of currently-active filters rendered as removable chips.

  • ActiveFiltersLabel string
    = "Active filters:"

    Prefix shown before the active-filter chips. Defaults to "Active filters:".

  • ApplyLabel string
    = "Filter"

    Label of the apply button in the footer. Defaults to "Filter".

  • ClearLabel string
    = "Clear"

    Label of the clear button in the footer. Defaults to "Clear".

  • ResetLabel string
    = "Reset"

    Label of the header reset button (shown when filters are active and OnReset is set). Defaults to "Reset".

  • Title string
    = null

    Panel title. Defaults to "Filters"; pass a localized string to override.

  • Class string
    = null

    Additional CSS classes applied to the panel.

  • Style string
    = null

    Inline style applied to the panel.

Events

  • OnApply EventCallback

    Invoked when the user clicks the apply button.

  • OnClear EventCallback

    Invoked when the user clicks the footer clear button.

  • OnRemoveFilter EventCallback<ActiveFilter>

    Invoked when the user closes a single active-filter chip.

  • OnReset EventCallback

    Invoked by the header reset button. That button only renders when this is set, so the panel never shows two controls that do the same thing; the footer clear button raises OnClear.

Content

  • ChildContent RenderFragment

    Filter inputs (typically Item + form controls).

Something went wrong while running the docs. Reload