SectionRenderer

App.searchV2. SectionRenderer

This module is built-in and default result renderer, which renders result in sections

Constructor

new SectionRenderer(input)

See:

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 *