View Source Phoenix.WebComponent.Pagination (Phoenix.WebComponent v2.5.1)

Render pagination.

Link to this section Summary

Functions

Generates a pagination.

Link to this section Functions

Generates a pagination.

examples

Examples

<.wc_pagination page_num={5} page_size={15} total={100} update_event="update-page"/>

attributes

Attributes

  • id - binary html attribute id

  • class - binary html attribute class

  • page_size - integer How manage items are showing in page.

  • page_num - integer Which page is showing.

  • total - integer Total item count.

  • update_event - binary Phoenix live event name for page status update.

attributes-1

Attributes

  • id (:string) - html attribute id. Defaults to "".
  • class (:string) - html attribute class. Defaults to "".
  • page_size (:integer) - items shows per page. Defaults to 10.
  • page_num (:integer) - page num. Defaults to 1.
  • total (:integer) - total items count. Defaults to 0.
  • update_event (:string) - Phoenix live event name for page status update. Defaults to "".