View Source DaisyUIComponents.Pagination (DaisyUIComponents v0.1.6)

Button Group component

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

Summary

Functions

Link to this function

calculate_display_btn(page, page_size, total_entries)

View Source

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.
  • target (:string) - Defaults to nil.
  • page_click_event (:string) - Defaults to "page_click".
  • Global attributes are accepted.