Class: InstantSearchResultItemProduct

InstantSearchResultItemProduct()

Instant search result item - Product item

Constructor

new InstantSearchResultItemProduct()

Source:

Extends

Members

(static) tempType :Object

Enum of Product item templates (SKU, VENDOR, IMAGE, PRICE_SALE)
Type:
  • Object
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:

_highlightSuggestionResult(resultItem, searchTerm)

Build highlight for instant search result label
Parameters:
Name Type Description
resultItem *
searchTerm *
Overrides:
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 events on the component
Overrides:
Source:

compileSuggestionProductPrice()

Build the product price and replace with the brackets in raw html template
Source:

compileTemplate() → {String}

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

customizeProductTitle()

Customize the Isntant search result item - product title
Source:

getTemplate() → {String}

Get the raw template of Instant search result item - Product item
Source:
Returns:
The raw HTML string
Type
String

init()

Initialize component
Overrides:
Source:

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()

Returns whether or not the component is rendered
Overrides:
Source:

prepareSuggestionProductPriceData()

Prepare product price data for multi-currency feature
Source:

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() → {Object}

Render the Instant search result item - Product item
Overrides:
Source:
Returns:
jQuery object
Type
Object

setData(data)

Set data for Instant search result item - Product item
Parameters:
Name Type Description
data Object Instant search result item data
Source: