Constructor
new SectionRenderer(input)
To create an instance, use factory method App.searchV2.createSectionRenderer
Parameters:
Name | Type | Description |
---|---|---|
input |
object | input |
Methods
addSection(sectionResult, options, searchIdHash)
Create and add section
Parameters:
Name | Type | Description |
---|---|---|
sectionResult |
* | Section Result |
options |
* | options |
searchIdHash |
* |
clear()
destroy()
getSections() → {Array}
Returns:
- Type
- Array
render(data, query)
Renders result in sections
Parameters:
Name | Type | Description |
---|---|---|
data |
Result data |
|
query |
renderSections(data, query)
Renders each section
Parameters:
Name | Type | Description |
---|---|---|
data |
* | Result data |
query |
* |