atomic-search-box-instant-results (Deprecated)
atomic-search-box-instant-results (Deprecated)
The 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.
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. |
|
|
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, for example, 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 |
---|---|
|
|
|