QuanticDocumentSuggestion
QuanticDocumentSuggestion
|
Note
This component was introduced in version |
The QuanticDocumentSuggestion
component displays an accordion containing the document suggestions returned by Coveo Case Assist based on the values that the user has previously entered in the different fields.
Example
<c-quantic-document-suggestion engine-id={engineId} max-documents="5"></c-quantic-document-suggestion>
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
|
The ID of the case assist engine instance the component registers to. |
|
|
|
|
Whether or not we want to hide the quick view for the document suggestions. |
|
|
|
|
Whether or not we want to fetch suggestions when initializing this component. |
|
|
|
|
The maximum number of document suggestions to display. |
|
|
|
|
The number of automatically opened document suggestions when fetching suggestions.. |
|
|
XML configuration file elements
The following XML configuration file elements apply (see XML Configuration File Elements).
Metadata | Value |
---|---|
|
|
|
|
Slots
The QuanticDocumentSuggestion component defines slots to ease the implementation of your Document Suggestion interface.
The following sample is taken from the Quantic Case Assist Cookbook.
<!-- ... -->
<c-quantic-document-suggestion
engine-id={engineId}
show-quickview
>
<c-vote-count-wrapper slot="rating"></c-vote-count-wrapper>
<c-vote-tracker-wrapper
engine-id={engineId}
slot="actions"
></c-vote-tracker-wrapper>
<c-quickview-footer-wrapper
engine-id={engineId}
slots-to-be-hidden={slotsToBeHidden}
slot="quickview-footer"
></c-quickview-footer-wrapper>
<c-no-suggestion
disconnected-callback-action={onSuggestions}
engine-id={engineId}
case-data={_caseData}
slot="no-suggestions"
></c-no-suggestion>
</c-quantic-document-suggestion>
</div>
<!-- ... -->
rating
The markup displayed at the top of each document suggestion, which lets you display the rating score of each document.