View Source PhoenixDuskmoon.Pagination (PhoenixDuskmoon v4.5.0)
Render pagination.
Summary
Functions
Generates a pagination.
Functions
Generates a pagination.
Examples
<.dm_pagination page_num={5} page_size={15} total={100} update_event="update-page"/>
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"
.