MenuItem

fun <T> MenuItem(modifier: Modifier = Modifier, menuItemData: MenuItemData<T>, onItemClick: (T) -> Unit)

DHIS2 MenuItem Used for dropdown menu.

Parameters

modifier

: allows a modifier to be passed externally.

menuItemData

: manages the MenuItemData

onItemClick

: callback to when menu item is clicked.