<ellipse-data-cricket></ellipse-data-cricket>

HTML custom element


The following events are available to JavaScript on the ellipse-data-cricket DOM element:


ellipse-data-cricket-event

This event is useful for clients who wish to forward to an external analytics provider. Refer to 'Analytics' section in 'Getting Started' for details.

Each line in the following table describes the possible different data payloads (inside 'event.detail') sent for the event:

Name Data Description
INIT {type: string} Dispatches information at the initialization of the widget.

type: the type attribute of the widget.
INTERACTION {type: string} Dispatched when the user makes interactions with the widget which are at the top-level of the widget only.

type: the type attribute of the widget.

Examples:

1. Changing selected tab.
2. Opening filter panel.
3. Changing bottom key.

ed-match-strip-open-match

This event is dispatched when the user clicks on the match link button on a match box within the match-strip widget.

The following event.detail payload is sent when the event is dispatched:

Name Data Description
id {id: string} The CricViz match identifier.