OnClickCallback
OnClickCallback runs when the user clicks a ContextMenu.Item.
type OnClickCallback = (uris: string[], uids?: string[], contextUri?: string) => void;| Parameter | Type | Description |
|---|---|---|
uris | string[] | The URIs of the selected items. |
uids | string[] | undefined | The UIDs of the selected items, when the menu has them. |
contextUri | string | undefined | The URI of the context the menu opened in, such as a playlist or album. |