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 idclass
-binary
html attribute classpage_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 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""
.