Skip to content

Commit 34dabc1

Browse files
authored
docs: Add CSS selector to interaction config doc(#92)
1 parent 1082f23 commit 34dabc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cdn_installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ telemetries: [
137137

138138
| Name | Type | Default | Description |
139139
| --- | --- | --- | --- |
140-
| events | Array | `[]` | An array of target DOM events to record. <br/><br/>For example, to record a single element with Id `mybutton`, use `[{event: 'click', elementId: 'mybutton' }]`. To record a complete clickstream, use `[{ event: 'click', element: document }]`. |
140+
| events | Array | `[]` | An array of target DOM events to record. Each DOM event is defined by an *event* and a *selector*. The event must be a [DOM event](https://www.w3schools.com/jsref/dom_obj_event.asp). The selector must be one of (1) `cssLocator`, (2) `elementId` or (3) `element`.<br/><br/>When two or more selectors are provided for a target DOM event, only one selector will be used. The selectors will be honored with the following precedence: (1) `cssLocator`, (2) `elementId` or (3) `element`. For example, if both `cssLocator` and `elementId` are provided, only the `cssLocator` selector will be used.<br/><br/>**Examples:**<br/>Record all elements identified by CSS selector `[label="label1"]`:<br/> `[{ event: 'click', cssLocator: '[label="label1"]'`<br/><br/>Record a single element with ID `mybutton`:<br/>`[{ event: 'click', elementId: 'mybutton' }]`<br/><br/>Record a complete clickstream<br/>`[{ event: 'click', element: document }]`. |
141141

142142
## Performance
143143

0 commit comments

Comments
 (0)