AccrueAdmin.Components.FilterChipBar (accrue_admin v1.5.0)

Copy Markdown View Source

Shared chip-style filter state for URL-synced admin list pages.

Summary

Functions

filter_chip_bar(assigns)

Attributes

  • items (:list) (required)
  • label (:string) - Defaults to "Active filters".
  • empty_label (:string) - Defaults to "No filters applied".
  • class (:string) - Defaults to nil.
  • result_count (:integer) - Defaults to nil.
  • result_label (:any) - Defaults to nil.
  • result_singular_label (:string) - Defaults to "result".
  • result_plural_label (:string) - Defaults to "results".
  • clear_all_href (:string) - Defaults to nil.
  • clear_all_label (:string) - Defaults to "Clear filters".