atomic-search-box-instant-results
atomic-search-box-instant-results
This is for:
DeveloperThe atomic-search-box-instant-results
component can be added as a child of an atomic-search-box
component, allowing for the configuration of instant results behavior.
This component does not support accessibility out-of-the-box. To do so, see Instant Results Accessibility.
This component is not supported on mobile.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
The callback to generate an By default, or if an empty string is returned, |
|
||
|
|
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 maximum number of results to show. |
|
|
Slots
Slots let you write custom HTML at a specific place inside a web component.
Slot | Description |
---|---|
|
The default slot where the instant results are rendered. |
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: ItemRenderingFunction) => Promise<void>
Returns: Promise<void>
Shadow Parts
Part | Description |
---|---|
|