switchPage

fun switchPage(page: Int)

Switches the current page of the paginated GUI to the specified page index and updates its display.

Parameters

page

The index of the page to switch to. It should be a non-negative integer and within the range of available pages.