1. @sitecore-cloudsdk/search/browser

widgetItemClick

Version:

Type

Function

Import path

@sitecore-cloudsdk/search/browser

Sends a widget item click event.

Signature

export async function widgetItemClick(
  widgetItemClickEventParams: WidgetItemClickEventParams
): Promise<void>

Parameters

Name

Type

Description

widgetItemClickEventParams

WidgetItemClickEventParams

Data for widget item click events.

Return value

Returns a promise.

Examples

Example 69. Running the widgetItemClick function

Next.js

Note

To run this function, you have to first initialize the Cloud SDK.

See more examples and other data you can include in the event.

Here's an example of how to use the widgetItemClick function:



If you have suggestions for improving this article, let us know!