Signature
Import
About this widget
Theconfigure
widget lets you provide raw search parameters to the Algolia API without rendering anything.
Any props you add to this widget is forwarded to Algolia.
For more information about the different parameters you can set,
see the search parameters API reference.
Examples
JavaScript
Options
A list of search parameters to enable when the widget mounts.
JavaScript
HTML output
This widget doesn’t have any HTML output.Customize the UI with connectConfigure
If you want to create your own UI of the configure
widget, you can use connectors.
To use connectConfigure
, you can import it with the declaration relevant to how you installed InstantSearch.js.
JavaScript
Create a render function
This rendering function is called before the first search (init
lifecycle step)
and each time results come back from Algolia (render
lifecycle step).
JavaScript
Rendering options
Removes the provided
searchParameters
and applies the one provided to the function.JavaScript
All original widget options forwarded to the render function.
JavaScript
Create and instantiate the custom widget
First, create your custom widgets using a rendering function. Then, instantiate them with parameters. There are two kinds of parameters you can pass:- Instance parameters. Predefined options that configure Algolia’s behavior.
- Custom parameters. Parameters you define to make the widget reusable and adaptable.
renderFunction
, both instance and custom parameters are accessible through connector.widgetParams
.
JavaScript
Instance options
A list of search parameters to enable when this widget renders.
JavaScript