Class: MultiPassRenderer

WinJSContrib.UI. MultiPassRenderer

new MultiPassRenderer()

This control manage multi-pass rendering for improving performances when showing a list of items. The renderer will render "shells" for the items to enable page layout, and render items content on demand, or when items scrolls to view.

Source:

Members

multipass :String

kind of multipass, can be 'section', or 'item'

Type:
  • String
Source:

orientation :String

could be 'vertical' or 'horizontal'

Type:
  • String
Source:

scrollContainer :HTMLElement

Element containing scroll. If scrollContainer is filled, items content will get rendered when coming into view

Type:
  • HTMLElement
Source:

tolerance :number

tolerance for determining if the rendering should apply. Tolerance is expressed in scroll container proportion. For example, 1 means that tolerance is equal to scroll container size

Type:
  • number
Source:

virtualize :boolean

indicate if renderer empty items out of sight

Type:
  • boolean
Source:

Methods

checkRendering()

check rendering of items, based on multipass configuration (force items on screen to render)

Source:

clearOffsets()

Clear cached offsets for bloc and for items

Source:

prepareItems(items, renderOptions)

render items shells to the page

Parameters:
Name Type Description
items Array

array of items to render

renderOptions Object

options for rendering items, can override control options like item template

Source:

refreshScrollEvents()

refresh scroll events associated to multi pass renderer

Source:

renderItemsContent()

force rendering of all unrendered items

Source:

updateLayout()

update ui related properties like cached offsets, scroll events, ...

Source: