ExLiveTable.PaginationComponent (ExLiveTable v0.1.0)

View Source

LiveComponent for handling pagination in tables.

This component displays pagination controls for navigating between pages of results. It supports both desktop and mobile views.

Summary

Functions

Calculates the ending page number for pagination display.

Callback implementation for Phoenix.LiveComponent.render/1.

Calculates the starting page number for pagination display.

Functions

end_page(current_page, total)

Calculates the ending page number for pagination display.

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

start_page(current_page)

Calculates the starting page number for pagination display.

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.