Skip to content

Dropdown Filter ​

ue-dropdown-filter presents a v-menu triggered by a button. The menu contains a ue-form built from a schema prop, giving users a compact way to apply structured filters without a full-page filter bar.

Usage ​

html
<ue-dropdown-filter
  v-model:filterState="filterState"
  :schema="filterSchema"
  :page="currentPage"
  type="users"
  @submit="loadData"
  @clear="resetFilters"
/>

Props ​

PropTypeDefaultDescription
filterStateObjectrequiredCurrent filter values, kept in sync via v-model:filterState
schemaObject|Arrayrequiredue-form schema describing the filter fields
pageNumberrequiredCurrent page number (forwarded for pagination resets)
typeStringrequiredResource type identifier used by the parent to scope the filter
buttonTextString'Filter'Label on the activator button
loadingBooleanfalseShows a loading indicator on the submit button
tagsArray[]Optional tag list for tag-based filtering UI
filterModelObjectrequiredInitial model shape passed to the internal form

Events ​

EventPayloadDescription
update:filterStateObjectEmitted with the new filter values on submit
submit—Emitted after the menu closes following a filter apply
clear—Emitted when "Clear Filters" is clicked

Behaviour ​

  • The menu closes automatically after "Apply Filters" or "Clear Filters" is clicked.
  • The internal ue-form model is a local copy of filterState, so the parent state is only updated on explicit submit — not on every field change.