-
Components
- atomic-aria-live
- atomic-breadbox
- atomic-category-facet
- atomic-color-facet
- atomic-component-error
- atomic-did-you-mean
- atomic-external
- atomic-facet
- atomic-facet-manager
- atomic-folded-result-list
- atomic-format-currency
- atomic-format-number
- atomic-format-unit
- atomic-html
- atomic-icon
- atomic-layout-section
- atomic-load-more-children-results
- atomic-load-more-results
- atomic-no-results
- atomic-numeric-facet
- atomic-numeric-range
- atomic-pager
- atomic-query-error
- atomic-query-summary
- atomic-rating-facet
- atomic-rating-range-facet
- atomic-refine-modal
- atomic-refine-toggle
- atomic-relevance-inspector
- atomic-result
- atomic-result-children
- atomic-result-children-template
- atomic-result-list
- atomic-result-template
- atomic-results-per-page
- atomic-search-box
- atomic-search-box-query-suggestions
- atomic-search-box-recent-queries
- atomic-search-interface
- atomic-search-layout
- atomic-smart-snippet
- atomic-smart-snippet-feedback-modal
- atomic-smart-snippet-suggestions
- atomic-sort-dropdown
- atomic-sort-expression
- atomic-table-element
- atomic-text
- atomic-timeframe
- atomic-timeframe-facet
atomic-result-children-template
The atomic-result-children-template
component determines the format of the child results, depending on the conditions that are defined for each template. A template
element must be the child of an atomic-result-children-template
, and an atomic-result-children
must be the parent of each atomic-result-children-template
.
Note: Any <script>
tags defined inside of a <template>
element will not be executed when results are being rendered.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
A function that must return true on results for the result template to apply. For example, a template with the following condition only applies to results whose |
|
|
Methods
getTemplate
Gets the appropriate result template based on conditions applied.
Signature: getTemplate() => Promise<ResultTemplate<DocumentFragment> | null>
Returns: Promise<ResultTemplate<DocumentFragment> | null>