DaisyUIComponents.Pagination (DaisyUIComponents v0.7.6)

View Source

Button Group component

https://daisyui.com/components/pagination/

Summary

Functions

calculate_display_btn(page, page_size, total_entries)

pagination(assigns)

Renders a button group.

Examples

<.pagination page={1} page_size={10} total_entries={100} />

Attributes

  • page (:integer) - Defaults to 1.
  • page_size (:integer) - Defaults to 10.
  • total_entries (:integer) - Defaults to 100.
  • button_class (:string) - Defaults to nil.
  • size (:string) - Must be one of "xs", "sm", "md", or "lg".
  • target (:string) - Defaults to nil.
  • page_click_event (:string) - Defaults to "page_click".
  • Global attributes are accepted.