Prepares to select a link inside an 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 questionAnswerId
of the smart snippet containing the link.
The link to select.
Prepares to select the source after a certain delay, sending analytics if it hadn't been selected before.
In a DOM context, we recommend calling this method on the touchstart
event.
The questionAnswerId
of the smart snippet to collapse.
Cancels the pending selection caused by beginDelayedSelectInlineLink
.
In a DOM context, we recommend calling this method on the touchend
event.
The questionAnswerId
of the smart snippet containing the link.
The link to select.
Cancels the pending selection caused by beginDelayedSelect
.
In a DOM context, we recommend calling this method on the touchend
event.
The questionAnswerId
of the smart snippet to collapse.
Collapse the specified snippet suggestion.
The questionAnswerId
of the smart snippet to collapse.
Expand the specified snippet suggestion.
The questionAnswerId
of the smart snippet to expand.
Selects a link inside an 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 questionAnswerId
of the smart snippet containing the link.
The link to select.
Selects the source, logging a UA event to the Coveo Platform if the source hadn't been selected before.
In a DOM context, we recommend calling this method on all of the following events:
contextmenu
click
mouseup
mousedown
The questionAnswerId
of the smart snippet to collapse.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The
SmartSnippetQuestionsList
controller allows to manage additional queries for which a SmartSnippet model can provide relevant excerpts.Example: smart-snippet-questions-list.fn.tsx