DurableDashboard.Components.Data.Pagination (DurableDashboard v0.1.0-rc)

Copy Markdown View Source

Stateless pagination control. Emits a phx-click event to a target with the new page number; the target (DataTable LiveComponent) decides how to apply it.

Summary

Functions

pagination(assigns)

Attributes

  • page (:integer) (required)
  • per_page (:integer) (required)
  • total (:integer) (required)
  • event (:string) - Defaults to "data_table:page".
  • target (:any) (required)
  • class (:string) - Defaults to nil.