atomic-result-text

This is for:

Developer
In this article

See Display results to learn more about customizing your result templates.

The atomic-result-text component renders the value of a string result field.

Properties

Property Attribute Description Type Default

default

default

The locale key for the text to display when the configured field has no value.

string | undefined

field (required)

field

The result field which the component should use. This will look in the Result object first, and then in the Result.raw object for the fields. It is important to include the necessary field in the atomic-search-interface component.

string

shouldHighlight

should-highlight

When this is set to true, the component attempts to highlight text based on the highlighting properties provided by the search API response.

boolean

true