Skip to main content

OnClickCallback

type OnClickCallback = (
uris: string[],
uids?: string[],
contextUri?: string
) => void;

Parameters

ParameterTypeDescription
urisstring[]List of URIs of the selected items.
uidsstring[] | undefinedList of UIDs of the selected items. Note: Not all context menu items have UIDs.
contextUristring | undefinedURI of the context menu where the item was called from. This could be a playlist, album, artist, or a track.