Prepares to select a link inside the answer after a certain delay, sending analytics if it was never selected before.
In a DOM context, we recommend calling this method on the touchstart
event.
The link to select.
Prepares to select the source after a certain delay, sending analytics if it was never selected before.
In a DOM context, we recommend calling this method on the touchstart
event.
Cancels the pending selection caused by beginDelayedSelectInlineLink
.
In a DOM context, we recommend calling this method on the touchend
event.
The link to select.
Cancels the pending selection caused by beginDelayedSelectSource
.
In a DOM context, we recommend calling this method on the touchend
event.
Allows the user to signal that they no longer wish to send feedback about why a particular answer was not relevant.
Collapse the snippet.
Allows the user to signal that a particular answer was not relevant.
Expand the snippet.
Allows the user to signal that a particular answer was relevant.
Allows the user to signal that they wish to send feedback about why a particular answer was not relevant.
Selects a link inside the answer, logging a UA event to the Coveo Platform if it was never selected before.
In a DOM context, we recommend calling this method on all of the following events:
contextmenu
click
mouseup
mousedown
The link to select.
Selects the source, logging a UA event to the Coveo Platform if the source wasn't already selected before.
In a DOM context, we recommend calling this method on all of the following events:
contextmenu
click
mouseup
mousedown
Allows the user to send detailed feedback about why a particular answer was not relevant.
A personalized message from the end user about the relevance of the answer.
Allows the user to send feedback about why a particular answer was not relevant.
The generic feedback that the end user wishes to send.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The
SmartSnippet
controller lets you display the excerpt of a document that would be most likely to answer a particular query.Example: smart-snippet.fn.tsx