View Source Phoenix.WebComponent.Pagination (Phoenix.WebComponent v3.2.4)
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
(:any
) - html attribute id. Defaults tofalse
.class
(:any
) - html attribute class. Defaults to""
.page_size
(:integer
) - items shows per page. Defaults to10
.page_num
(:integer
) - page num. Defaults to1
.total
(:integer
) - total items count. Defaults to0
.update_event
(:string
) - Phoenix live event name for page status update. Defaults to"update_current_page"
.