atomic-folded-result-list
atomic-folded-result-list
This is for:
DeveloperThe atomic-folded-result-list
component is responsible for displaying folded query results, by applying one or more result templates for up to three layers (i.e., to the result, child and grandchild).
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
|
The name of the field that uniquely identifies a result within a collection. |
|
|
|
|
The name of the field on which to do the folding. The folded result list component will use the values of this field to resolve the collections of result items. |
|
|
|
|
The spacing of various elements in the result list, including the gap between results, the gap between parts of a result, and the font sizes of different parts in a result. |
|
|
|
|
The expected size of the image displayed in the results. |
|
|
|
|
The initial number of child results to request for each folded collection, before expansion. |
|
|
|
|
The name of the field that determines whether a certain result is a top result containing other child results within a collection. |
|
Methods
setRenderFunction
Sets a rendering function to bypass the standard HTML template mechanism for rendering results. You can use this function while working with web frameworks that don’t use plain HTML syntax, e.g., React, Angular or Vue.
Do not use this method if you integrate Atomic in a plain HTML deployment.
Signature: setRenderFunction(resultRenderingFunction: ResultRenderingFunction) => Promise<void>
Returns: Promise<void>
Shadow Parts
Part | Description |
---|---|
|
The element displaying an outline or a divider around a result |
|
The element containing every result of a result list |