PhoenixKitCatalogue.Web.TableToolbar (PhoenixKitCatalogue v0.10.0)

Copy Markdown View Source

Toolbar pieces for the catalogue admin tables: the column-settings modal, the sort select+direction control, and an enum filter select. All emit plain events handled by CataloguesLive against the active scope.

Summary

Functions

column_settings_modal(assigns)

Attributes

  • show (:boolean) (required)
  • scope (:atom) (required)
  • selected (:list) (required)
  • temp_selected (:list) - Defaults to nil.

enum_filter(assigns)

Attributes

  • id (:string) (required)
  • label (:string) (required)
  • value (:string) - Defaults to nil.
  • options (:list) (required)
  • prompt (:string) (required)

sort_controls(assigns)

Attributes

  • scope (:atom) (required)
  • selected (:list) (required)
  • sort_by (:string) (required)
  • sort_dir (:atom) (required)