# Interface: ResultsContainerAdapter

# ResultsContainerAdapter

interface

The Adapter of results container

## Methods

### createFacetResultElement

createFacetResultElement(result) returns Element

Implement this method to override rendering of a facet result.

| #### Parameter ||
|---|---|
| result | Object A facet result object from response Value must not be null. |

Returns

:   `non-null Element` element Element built based on a facet result.

### createSearchResultElement

createSearchResultElement(result) returns Element

Implement this method to override rendering of a search result.

| #### Parameter ||
|---|---|
| result | Object A search result object from response Value must not be null. |

Returns

:   `non-null Element` element Element built based on a search result.

### decorateFacetResultElement

decorateFacetResultElement(element, result)

Implement this method to decorate a facet result, such as change CSS.

| #### Parameter ||
|---|---|
| element | Element Element you can decorate on. Value must not be null. |
| result | Object A facet result object from response Value must not be null. |

### decoratePaginationElement

decoratePaginationElement(element)

Implement this method to decorate pagination buttons, such as change CSS.

| #### Parameter ||
|---|---|
| element | Element Element of pagination buttons. Value must not be null. |

### decorateSearchResultElement

decorateSearchResultElement(element, result)

Implement this method to decorate a search result, such as change CSS.

| #### Parameter ||
|---|---|
| element | Element Element you can decorate on. Value must not be null. |
| result | Object A search result object from response Value must not be null. |

### interceptSearchRequest

interceptSearchRequest(request) returns Object

Implement this method to add extra params in request.

| #### Parameter ||
|---|---|
| request | Object The original request Value must not be null. |

Returns

:   `non-null Object` request The updated request

### interceptSearchResponse

interceptSearchResponse(response)

Implement this method to read the response prior to rendering. The
response object is read-only. If the search call fails, the response
will contain the error.

If a new search request is issued while one is pending, the previous
request is cancelled and the method is not called.

| #### Parameter ||
|---|---|
| response | Object The search response Value must not be null. |