ToolbarMenuItems

fun ToolbarMenuItems(itemTitleIDs: List<Int>, onItemPressedAt: (index: Int) -> Unit)

A composable representing a menu with options displayed as a vertical ellipsis (...) button in the toolbar. When clicked, it expands to reveal a dropdown menu with options based on the provided string IDs.

Parameters

itemTitleIDs

a list of string resource IDs for the titles of the options in the menu.

onItemPressedAt

an event fired when an option is selected. It sends the index of the selected option as a parameter.