buttonMenu

fun <E> buttonMenu(entries: List<E>, buttonContentSupplier: ButtonMenu.ButtonContentSupplier<E>, callback: SuspendingChoiceCallback<E>): ButtonMenuBuilder<E>(source)

A paginator where each page is filled with a list of entries.

Each page can be limited to a specified number of entries.

Each entry can have its prefix and its string representation customized.

In addition, each entry is associated to a Button, when clicked, the callback is run.