Skip to content

OnClickCallback

OnClickCallback runs when the user clicks a ContextMenu.Item.

type OnClickCallback = (uris: string[], uids?: string[], contextUri?: string) => void;
ParameterTypeDescription
urisstring[]The URIs of the selected items.
uidsstring[] | undefinedThe UIDs of the selected items, when the menu has them.
contextUristring | undefinedThe URI of the context the menu opened in, such as a playlist or album.