CommonDropdownMenuItem

fun CommonDropdownMenuItem(text: String, onClick: () -> Unit, modifier: Modifier = Modifier, icon: ImageVector? = null, ga4Event: Ga4EventData? = null)(source)

A dropdown menu row with the toolkit's click feedback, bounce, and GA4 logging.

icon is optional so that value pickers, where every row would carry the same glyph, look the same as action menus without one.

Parameters

text

Row label.

onClick

Invoked after feedback and analytics, on every click.

modifier

The Modifier applied to the row.

icon

Optional leading icon.

ga4Event

Optional GA4 event data to log on click.


fun CommonDropdownMenuItem(textResId: Int, onClick: () -> Unit, modifier: Modifier = Modifier, icon: ImageVector? = null, ga4Event: Ga4EventData? = null)(source)

Overload for rows whose label is a string resource.