Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 678 Bytes

File metadata and controls

33 lines (24 loc) · 678 Bytes

Universal Filters

Lightweight plugin adding one debounced search input to the List view (injection point: beforeActionButtons). It builds a single OR filter across configured columns.

Install

npm install @adminforth/universal-search

Usage

import UniversalFiltersPlugin from '@adminforth/universal-search';

plugins: [
  new UniversalFiltersPlugin({
    columns: [
      { name: 'title' },
      { name: 'description' },
      { name: 'country', caseSensitive: true },
      { name: 'price', exact: true },
    ],
    debounceMs: 400,
  })
]

Full docs & advanced options: see AdminForth docs (Plugins -> Universal Filters).

License

MIT