Class: SearchResultPanelItem

SearchResultPanelItem()

Search result panel item

Extends

Members

(static) Enum

Get Enum of Search result panel item
Source:

children :Array

Array of child components
Type:
  • Array
Overrides:
Default Value:
  • []
Source:

parent :Component

The parent component
Type:
  • Component
Overrides:
Default Value:
  • null
Source:

Methods

_callAllBindEvents()

Bind events on the component (include all child-components)
Overrides:
Source:

_callAllInit()

Initialize the component (include all child-components)
Overrides:
Source:

_callAllRender()

Render the component (include all child-components)
Overrides:
Source:

_searchPanelCallback(data)

Build Collection list, Page list after open collection panel, page panel
Parameters:
Name Type Description
data Object Search result data
Source:

addComponent(childComponent)

Add the child component into a component
Parameters:
Name Type Description
childComponent Object The child component
Overrides:
Source:

afterBindEvents()

After bind evnets on the component
Overrides:
Source:

afterInit()

After initialize callback
Overrides:
Source:

afterRender()

After reder component callback
Overrides:
Source:

beforeBindEvents()

Before bind events on component callback
Overrides:
Source:

beforeInit()

Before initialize callback
Overrides:
Source:

beforeRender()

Before reder component callback
Overrides:
Source:

bindEvents()

Bind the events on the Search result panel item
Overrides:
Source:

compileTemplate() → {String}

Replace the brackets in raw html template with proper values
Source:
Returns:
HTML string
Type
String

getTemplate()

Get the rebots meta tag for document head
Source:
Requires:
  • module:{String}

init()

Initialize component
Overrides:
Source:

isActive() → {Boolean}

Returns whether or not the search result panel item is activated
Source:
Returns:
TRUE or FALSE
Type
Boolean

isBindEvents()

Returns whether or not binding the events on a component
Overrides:
Source:

isLoopThroughChild()

Returns whether or not the childs of a component is refresh
Overrides:
Source:

isRender() → {Boolean}

Returns whether or not the search result panel item is rendered - Products: Always render after API callback. - Collection, Pages: Just render on first load
Overrides:
Source:
Returns:
TRUE or FALSE
Type
Boolean

refresh()

Refresh component
Overrides:
Source:

removeComponent(childComponent)

Remove a child component of a component
Parameters:
Name Type Description
childComponent Object The child component
Overrides:
Source:

render()

Render the search result panels
Overrides:
Source:

setData(data)

Set data fpr Search result panel
Parameters:
Name Type Description
data Object The filter result data
Source: