Class: FlipSnap

WinJSContrib.UI. FlipSnap

Control for managing snap scroll..

new FlipSnap(element, options)

Parameters:
Name Type Description
element HTMLElement

DOM element containing the control

options Object
Source:

Members

canGoBack :boolean

indicate if the flipsnap can go back

Type:
  • boolean
Source:

canGoForward :boolean

indicate if the flipsnap can go forward:

Type:
  • boolean
Source:

currentPosition :number

get or set the current position of flipsnap

Type:
  • number
Source:

dataList :Array

Type:
  • Array
Source:

itemMaxWidth :number

get or set the max width for an item of flipsnap control (default is 800px)

Type:
  • number
Source:

itemTemplate :Object

get or set the max width for an item of flipsnap control (default is 800px)

Type:
  • Object
Source:

Methods

initList(list, itemHandling)

initilialize the item list of flipsnap control

Parameters:
Name Type Description
list array

The item list.

itemHandling requestCallback

The callback that handles each item.

Source: