Developers

ResetResults

Usage

Use this method to reset the results component to its initial state:

results.resetResults();

Mandatory parameters

There is not mandatory parameter but the option data is mandatory.

Response data format

This method only returns an operational successful code.

Example

This is an example in which just after displaying the results for a search, they are cleared out:

let results = sdk.component('results', '#results');
results.searchContentById(12);
results.resetResults(); // removes all displayed results