Pages
Page History
...
Property (data) | Description | Type | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
content | Content of the modification as a single string. Newlines and other control characters in the original content are converted into escape sequences in the returned string. The following examples show the content of a modification as defined in the modification and as returned in the
| String | |||||||||||||||||||||||||
params | Template defaults defined for the modification, if any. The following examples show two template defaults as defined in the modification and as returned in the
The template defaults are also available as props in all children of the
For more information about templates, see Creating and using modification templatesTemplates. | Object | |||||||||||||||||||||||||
variation | Number of the modification variation whose content was returned. | Number | |||||||||||||||||||||||||
Property (function) | Description | Type | |||||||||||||||||||||||||
setTrackableElements | Function for setting which HTML elements to start tracking for clicks, displays, and true displays when calling The function takes one parameter:
For more information, see Tracking basic events for React fragments.
| Function | |||||||||||||||||||||||||
startTracking | Function for starting click, display, and true display tracking for the elements set by For more information, see Tracking basic events for React fragments.
| Function | |||||||||||||||||||||||||
setDisplayed | Function for manually triggering a display event for the modification. Use this function if a child of the | Function | |||||||||||||||||||||||||
setTrueDisplayed | Function for manually triggering a true display event for the modification. Use this function if a child of the | Function | |||||||||||||||||||||||||
setClicked | Function for manually triggering a click event for the modification. Use this function if a child of the | Function |
...