Class: ProductPaginationInfinite

ProductPaginationInfinite()

Product pagination - load more

Extends

Members

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:

_onScrollEvent(event)

Bind the scroll event on Window to load more product
Parameters:
Name Type Description
event Object DOM event
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 event on infinite loading
Overrides:
Source:

compileTemplate() → {String}

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

getTemplate(tempType)

Get te raw HTML template for pagination - infinite loading
Parameters:
Name Type Description
tempType String
Source:

hideLoading()

Hide load more loading
Overrides:
Source:

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

Return whether or not the pagination - infinite loading is rendered
Overrides:
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()

Render the pagination - infinite loading
Overrides:
Source:

setData(data)

Set data for pagination
Parameters:
Name Type Description
data Object Filter result data
Overrides:
Source:

showLoading()

Show load more loading
Overrides:
Source: