Skip to content

Commit

Permalink
docs(quantic): new information added to better document result templa…
Browse files Browse the repository at this point in the history
…tes components dealing with fields (#3494)

* js doc of result templates components improved

* Update packages/quantic/force-app/main/default/lwc/quanticResultText/quanticResultText.js
  • Loading branch information
mmitiche authored Dec 19, 2023
1 parent 1b5dd02 commit 61dc3cd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {LightningElement, api} from 'lwc';

/**
* The `QuanticResultDate` component displays a given result date field value.
* Make sure the field specified in this component is also included in the field array for the relevant template. See the this example: [Quantic usage](https://docs.coveo.com/en/quantic/latest/usage/#javascript).
* @category Result Template
* @example
* <template if:true={result.raw.date}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import stringTemplate from './stringTemplate.html';

/**
* The `QuanticResultField` component properly displays a given result field according to its type.
* Make sure the field specified in this component is also included in the field array for the relevant template. See the this example: [Quantic usage](https://docs.coveo.com/en/quantic/latest/usage/#javascript).
* @category Result Template
* @example
* <template if:true={result.raw.source}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {LightningElement, api} from 'lwc';

/**
* The `QuanticResultHighlightedTextField` component displays a given result field value and supports text highlighting for the following fields: `title`, `excerpt`, `printable URI`, `first sentences` and `summary`.
* Make sure the field specified in this component is also included in the field array for the relevant template. See the this example: [Quantic usage](https://docs.coveo.com/en/quantic/latest/usage/#javascript).
* @category Result Template
* @example
* <c-quantic-result-highlighted-text-field engine-id={engineId} result={result} field="title"></c-quantic-result-highlighted-text-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {LightningElement, api} from 'lwc';

/**
* The `QuanticResultMultiValueText` component displays a given result multi-value field value.
* Make sure the field specified in this component is also included in the field array for the relevant template. See the this example: [Quantic usage](https://docs.coveo.com/en/quantic/latest/usage/#javascript).
* @category Result Template
* @example
* <template if:true={result.raw.language}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {LightningElement, api} from 'lwc';

/**
* The `QuanticResultNumber` component displays a given result number field value.
* Make sure the field specified in this component is also included in the field array for the relevant template. See the this example: [Quantic usage](https://docs.coveo.com/en/quantic/latest/usage/#javascript).
* @category Result Template
* @example
* <template if:true={result.raw.ytlikecount}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {LightningElement, api} from 'lwc';

/**
* The `QuanticResultText` component displays a given result field value.
* Make sure the field specified in this component is also included in the field array for the relevant template. See the this example: [Quantic usage](https://docs.coveo.com/en/quantic/latest/usage/#javascript).
* @category Result Template
* @example
* <template if:true={result.raw.source}>
Expand Down

0 comments on commit 61dc3cd

Please sign in to comment.