Pagination can be executed locally using the action attribute of the objects.
The jsonl lines below will setup 3 buttons to the bottom of a 240x320 screen which will navigate back and forth between the pages:
Will restart the device on holding of the button object.
Note: action has the format of "action": {"<btn event>": "<command>"}
*btn events: are up, down, hold, release.
Pagination can be also acomplished by enabling swipe gesture on certain objects. The jsonl line below will setup an invisible rectangle overlay at the top of the screen with enabled swipe:
You should put these lines to the end of your pages.jsonl config file, so that these objects remain at the top, and no others will be drawn on top of them.
To limit page navigation only to page numbers between 1 and 6: