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.
Cancels the pending selection caused by beginDelayedSelectInlineLink
.
In a DOM context, we recommend calling this method on the touchend
event.
The link to select.
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.
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